github graphieros/vue-data-ui v3.0.5

latest releases: v3.0.20, v3.0.19, v3.0.18...
7 days ago

VueUiXy - Interline coloring new feature

You can now color the cross section between pairs of lines.

// Obviously don't set these datapoints with useArea:true because it defeats the purpose
const dataset = ref([
  { name: 'Series A', type: 'line', series: [] },
  { name: 'Series B', type: 'line', series: [] },
])

const config = ref({
  line: {
    interLine: {
      pairs: [
        ['Series A', 'Series B']
      ],
      fillOpacity: 0.25
    }
  }
})

By default, colors of your dataset will be used.
Colors can be overridden:

const config = ref({
  line: {
    interLine: {
      pairs: [
        ['Series A', 'Series B']
      ],
      colors: [
        ['#00FF00', '#FF0000'] // first color will fill areas where 'Series A' is on top, second color when 'Series B' is on top
      ],
      fillOpacity: 0.25
    }
  }
})
image

If you just realized this is version 3 now, here are all the details.

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

NewReleases is sending notifications on new releases.