Comments (3)
The result should be a HTML component that can plot several series at once.
- plot several series at once
- The x and y axes must support definable labels
- The plot must show the series' label (the label must be unique)
- It must be possible to dynamically add/remove series.
- The x-axis must support both numerical and date values.
- Date should be displayed in the local timezone.
- The x-axis and y-axis must allow linear/log scale.
from sacredboard.
The component should be defined as:
<plot-chart params="
series: [series1, series2, series3],
xLabel:'x label', yLabel:'y label',
xType: 'date',
yType: 'linear'"></plot-chart>
- (optional)
xLabel
andyLabel
axes labels - (optional)
xType
andyType
are one oflinear
,log
ordate
.- Date expects the corresponding values to be of JavaScript
Date
type. - The type of the data in the series must correspond to the type of the axis (number/date)
- Date expects the corresponding values to be of JavaScript
series1...seriesN
are series to be displayed, each of them having properties
{x: [0, 1, 2,...], y: [10,20,30,...], label: "a data series"}
// or, for date-based data
{x: [date1, date2, date3,...], y: [10,20,30,...], label: "a data series"}
- All the arrays and labels should be wrapped by Knockout observables so that the chart gets modified automatically. X and Y can be either a regular observable or an arrayObservable.
Implementation
Implemented as a Javascript module in the plot
directory.
from sacredboard.
Test scenario (in-code):
You can use the test page (http://127.0.0.1:5000/static/scripts/plot/test.html).
- Create the
<plot-chart>
element with an observable array of series that have the x andy elements defined as well as observable arrays. The xLabel and yLabel of the chart, as well as the label of the series, are observables too. (defined asko.observable(value)
or (ko.observableArray([])
)
2.set different values for axes labels ( e.g. in the developer console ) - remove one of the series, then the other one, and re-add them to the observable array in the reverse direction (so that the first one that was removed is added back to the chart first).
NOTE: this is needed when we want to dynamically add another trace (e.g. when changing from step-based to time-based x-axis as defined in #6) - Add two series with a time-based x axis (so that the chart shows some progress over time)
from sacredboard.
Related Issues (20)
- When viewing captured output, window keeps scrolling down HOT 5
- Very Slow details view HOT 1
- Password protected sacredboard HOT 1
- Filter results by run info HOT 2
- LogLog Plot
- Displaying datetime objects HOT 1
- greenlet HOT 1
- `sacredboard -F path/to/experiments/dir` displays "No matching records found" but recognizes all entries HOT 5
- [Feature request] Use metric data as x, y axes.
- invalid syntax error on running on Mac HOT 2
- I have 4 runs but nothing showing. HOT 5
- Viewing source saved HOT 4
- Closing running Tensorboard HOT 3
- Running multiple Tensorboards
- Support customized host? HOT 2
- metrics plots: Tick all metrics by default HOT 3
- Show comment in the overview table HOT 3
- Does anyone have an example of how to use Tensorboard and Sacredboard together? HOT 1
- Pymongo crashes when ordering by anything different than ID HOT 1
- Invalid syntax error when running on Mac HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sacredboard.