Skip to content

v2.2.33

Compare
Choose a tag to compare
@graphieros graphieros released this 09 Jul 06:31
· 1304 commits to master since this release

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 using stackRatio 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 to config.style.chart.stackGap (number, default: 20)