github graphieros/vue-data-ui v2.2.33

latest releases: v3.1.7, v3.1.6, v3.1.5...
14 months ago

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)

Don't miss a new vue-data-ui release

NewReleases is sending notifications on new releases.