npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

v-charts-multiple-y

v1.0.0-rc2

Published

Vue Echarts Components

Downloads

10

Readme

Chart components based on Vue2.x and Echarts

This magic change library copyright belongs to the original author

  • Thanks to the author for providing such a good library to use echarts in vue
  • This library only adds a multi-axis function for the line chart (if you do not need to use the source library)
  • Copyright still belongs to the original author

Features

  • Uniform data format: Use an uniform data format that both convient for frontend and backend, and also easy to create and edit.
  • Simplified configuration: With simplified configuration items, complex requirements can be easily implemented.
  • Simple customization: Provide a variety of custom Echarts way, you can easily set the chart options.

Support

Modern browsers and Internet Explorer 10+, include pc and mobile browser.

Install

npm i v-charts-multiple-y echarts -S

Start

<template>
  <div>
    <ve-line :data="chartData"></ve-line>
  </div>
</template>

<script>
import VeLine from 'v-charts/lib/line.common'
export default {
  components: { VeLine },
  data () {
    return {
      chartData: {
        columns: ['date', 'age', 'balance', 'people'],
        rows: [
          { 'date': '01-01', 'age': 1231, 'balance': '999', 'people': '578' },
          { 'date': '01-02', 'age': 1223, 'balance': '781', 'people': '1213' },
          { 'date': '01-03', 'age': 2123, 'balance': '321', 'people': '213' },
          { 'date': '01-04', 'age': 4123, 'balance': '654', 'people': '2312' },
          { 'date': '01-05', 'age': 3123, 'balance': '972', 'people': '1233' },
          { 'date': '01-06', 'age': 7123, 'balance': '124', 'people': '2313' }
        ]
      },
      /*
        yAxisSite
          - site[Array<string>]: Corresponds to columns
            Note: The first one of the array is the left number axis / the second one is the right first one, and the others are sorted one by one.
          - offset[Array<number>]: Corresponds to columns
            Note: The first one of the array is the left number axis / the second one is the right first one, and the others are sorted one by one.
        yAxisName Keep consistent with the official website
      */
      settings: {
        yAxisSite: {
          site: ['age', 'balance', 'people'],
          offset: [0, 0, 80]
        },
        yAxisName: ['age', 'balance', 'people']
      }
    }
  }
}
</script>

Changelog

Detailed changes for each release are documented in the release notes or ChangeLog.

Contribution

Please make sure to read the Contributing Guide before making a pull request.

License

MIT