-
Notifications
You must be signed in to change notification settings - Fork 353
How behaves for dynamic loading?
Explanation on how behaves for dynamic loading according given option & data.
// initial
columns: [
["x", 0, 10, 15, 20, 25],
["a", 12, 15, 6, 23, 13]
]
Will replace the previous axis x
value.
// the previous `x` will be replaced
chart.load({
columns: [
["x",0, 5, 7, 12, 20],
["a", 12, 9, 31, 26, 17]
]
});
Will add new axis ticks, coordinated with the existing x
ticks values.
// the previous `x` will not be replaced
chart.load({
columns: [
["x",0, 5, 7, 12, 20],
["b", 12, 9, 31, 26, 17]
]
});
If contains initial dataset(in this case 'a'), it will act as case 1
.
chart.load({
columns: [
["x",0, 5, 7, 12, 20],
["a", 7, 7, 7, 7, 7],
["b", 12, 9, 31, 26, 17]
]
});
For category
axis type, in all circumstances when x
value is given on data load, it will replace the previous x tick values.
// initial
data: {
x: "x",
columns: [
["x", "a1", "a2", "a3", "a4", "a5"],
["a", 12, 15, 6, 23, 13]
]
},
axis: {
x: {
type: "category"
}
}
Will replace the previous axis x
value.
// the previous `x` will be replaced
chart.load({
columns: [
["x", "a3", "a4", "a5", "a6", "a7"],
["a", 12, 9, 31, 26, 17]
]
});
Will replace the previous axis x
value.
// the previous `x` will be replaced
chart.load({
columns: [
["x", "a3", "a4", "a5", "a6", "a7"],
["b", 12, 9, 31, 26, 17]
]
});
Will replace the previous axis x
value.
// the previous `x` will be replaced
chart.load({
columns: [
["x", "a3", "a4", "a5", "a6", "a7"],
["a", 7, 7, 7, 7, 7],
["b", 12, 9, 31, 26, 17]
]
});
Basically, the tick will degrade when given data length is smaller than the original length. Otherwise, it will maintain same length even loading data length is greater than the original.
// initial
columns: [
["x", 0, 10, 15],
["a", 12, 15, 6]
]
When load data length < original data length.
// previous 'x' will be scaled according the given data length
chart.load({
columns: [
["a", 12, 9]
]
});
// will add dataset 'b' to be displayed, w/o changes
chart.load({
columns: [
["b", 12, 9]
]
});
When load data length > original data length.
// the last 2 data will be cut off to be fit with the 'x' length
chart.load({
columns: [
["a", 12, 9, 31, 22, 20]
]
});
// the last 2 data will be cut off to be fit with the 'x' length
chart.load({
columns: [
["b", 12, 9, 10, 20, 30]
]
});
- Why we decided to start billboard.js?
- Comparison table
- How to migrate from C3.js?
- Who's using billboard.js
- Third party applications
- Themes
- Roadmap
- Architecture & Event
- Plugin Interface
- Release workflow
- How behaves for dynamic loading?
- How tooltip behaves on grouped option?
- How to load as ESM directly from the browser?
- How to implement realtime chart?
- How to bundle for legacy browsers?
- How to generate chart image in Node.js environment?
- Understanding padding