Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

vue-schart

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Issues
File Explorer

Advanced tools

vue-schart

Vue.js wrapper for sChart.js

    2.0.0latest
    Github

Version published
Maintainers
1
Weekly downloads
793
decreased by-16.35%

Weekly downloads

Changelog

Source

V2.0.0

  • 支持sChart.js V3.0.0

Readme

Source

vue-schart

:bar_chart: Vue.js wrapper for sChart.js

Downloads Version License

Support for use at the mobile. Support vue.js 1.x & 2.x

Usage

Install:

npm install vue-schart -S

Use in component:

<template> <div id="app"> <schart class="wrapper" canvasId="canvas" :options="options" /> </div> </template> <script> import Schart from 'vue-schart'; export default { data() { return { options: { type: "bar", title: { text: "最近一周各品类销售图" }, bgColor: "#fbfbfb", labels: ["周一", "周二", "周三", "周四", "周五"], datasets: [ { label: "家电", fillColor: "rgba(241, 49, 74, 0.5)", data: [234, 278, 270, 190, 230] }, { label: "百货", data: [164, 178, 190, 135, 160] }, { label: "食品", data: [144, 198, 150, 235, 120] } ] } } }, components:{ Schart } } </script> <style> .wrapper{ width: 7rem; height: 5rem; } </style>

Options

Refer to the documentation for sChart.js.

License

MIT license.

Keywords

FAQs

Last updated on 01 Nov 2019

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc