Skip to content

A Vue3 fork of Frappe Charts, but Frappe (even v2) is junk and I don't recommend this. uPlot or the chartjs is probably more useful

License

Notifications You must be signed in to change notification settings

pathscale/vue3-frappe-charts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue 3 Frappe Charts

Vue logo

npm version

This is a simple package to get using Frappe Charts within VueJS

How to use

First we need to import and initialize

import Chart from "@pathscale/@pathscale/vue3-charts";

export default {
    components: {
        Chart
    },
  },
};

Then in our Vue templates:

<template>
  <chart
    id="test"
    title="Monthly Distribution"
    type="pie"
    :height="300"
    :labels="['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']"
    :colors="['red']"
    :discrete-domains="false"
    :data-sets="data"
  />
</template>
<script>
  export default {
    name: "ChartShowcase",
    components: { Chart },
    setup() {
      const data = [{ values: [18, 40, 30, 35, 8, 52, 17, -4] }];
      return {
        data,
      };
    },
  };
</script>

There are more examples in the examples directory

Links

Frappe Charts

Vue JS

About

A Vue3 fork of Frappe Charts, but Frappe (even v2) is junk and I don't recommend this. uPlot or the chartjs is probably more useful

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 94.9%
  • JavaScript 5.1%