v2.2.33
VueUiXyCanvas
:
- Added a datapoint
stackRatio
attributes to manage individual series height when stack mode is enabled. When not used, individual height will be automatically calculated. When usingstackRatio
on all datapoints, make sure their sum is 1. - Added a datapoint
autoScaling
(boolean) to force scaling to not be zero based, ideal to visualize very small variations on a datapoint.
Example:
const dataset = ref([
{
name: "S1",
series: [1, 2, 3],
type: "line",
dataLabels: false,
scaleSteps: 3,
prefix: "",
suffix: "",
rounding: 1,
autoScaling: true,
stackRatio: 0.5 // will take half of the chart's height
},
{...}
])
- The config attribute
config.style.chart.stackGapRatio
(number, default: 0.8) was changed toconfig.style.chart.stackGap
(number, default: 20)