Skip to content

Releases: graphieros/vue-data-ui

v2.3.22

09 Oct 16:14
Compare
Choose a tag to compare

This release improves the tooltip behavior when it reaches chart borders.

Additional config attributes are also added to customize the tooltip position. A centered position relative to the mouse position used to be imposed, I figured it would be nice to leave it to the users what they prefer.

{
  ...
  position: "left" | "center" | "right"; // default: "center" (previous behavior)
  offsetY: number;  // default: 24
}

For VueUiQuickChart, these config attributes are as follows:

{
  ...
  tooltipPosition,
  tooltipOffsetY
}

Docs are updated.
For chart makers you might need to click "Clear local storage for this chart" to reset your local storage with up to date config.

v2.3.21

09 Oct 06:01
Compare
Choose a tag to compare

VueUiGizmo: fix gauge proportion not exact

v2.3.20

08 Oct 12:35
Compare
Choose a tag to compare

This release adds a new mini component: VueUiGizmo

It comes for now in 2 types: "battery" or "gauge". More types may be added in the future.
Check it out here

v2.3.19

07 Oct 16:27
Compare
Choose a tag to compare

This release adds the #watermark slot to most charts.

image

Usage:

<VueUiDonut :config="config" :dataset="dataset">
  <template #watermark="{ isPrinting }">
    <div
      v-if="isPrinting"
      style="font-size: 100px; opacity: 0.1; transform: rotate(-10deg)"
    >
      WATERMARK
    </div>
  </template>
</VueUiDonut>

The slot exposes the isPrinting boolean, should you wish to display the watermark only on the downloaded pdf or png.
The list of components supporting this slot is available on the README

v2.3.17

06 Oct 22:11
Compare
Choose a tag to compare

VueUiGauge: fix title textAlign config option not applied

v2.3.16

06 Oct 21:27
Compare
Choose a tag to compare

Titles on charts were centered by default.
This release adds config options to all charts with titles to manage alignment:

textAlign: "left" | "center" | "right"; // default: "center"
paddingLeft: number; // default: 0
paddingRight: number; // default: 0

v2.3.14

05 Oct 04:21
Compare
Choose a tag to compare

VueUiSparkbar : fix bar overflow issue when value > 100 in percentage mode (issue)

v2.3.13

04 Oct 15:53
Compare
Choose a tag to compare

VueUiSparkHistogram :
. Allow individual datapoints color with the color dataset attribute:

const dataset = ref<VueUiSparkHistogramDatasetItem[]>(
  {
    value: 1.2,
    intensity: 1,
    valueLabel: '20%',
    timeLabel: '09:00',
    color: '#FF0000', // this color will only be applied on this datapoint
  },
  {
    value:  1.3,
    intensity: 0.6,
    valueLabel: '50%',
    timeLabel: '10:00'
  }, // color for this datapoint will depend on the config (default behavior)
  ...
)
Capture d’écran 2024-10-04 à 17 44 18

VueUiSparkbar : add new datalabel position options (config.style.labels.name.position):

  • left
  • top-left (default)
  • top-center
  • top-right
  • right

The legacy 'top' which used to be the default will fallback to 'top-left', so no breaking change here.

Thanks @zcodecn for suggesting these improvements :)

v2.3.11

04 Oct 07:25
Compare
Choose a tag to compare

VueUiSparkbar: fix TS type def errors

v2.3.10

04 Oct 06:20
Compare
Choose a tag to compare

VueUiSparkbar : fix chart not updating when dataset changes dynamically