Code Monkey home page Code Monkey logo

chartjs-plugin-responsive-downsample's People

Contributors

akira215 avatar dependabot[bot] avatar jklimke avatar mpursche avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chartjs-plugin-responsive-downsample's Issues

how refresh downsample

hi,
After 5 seconds, I add a new sample to the chart. Currently, the chart is refreshed only by zoom/pan the chart. Is there a command refreshing the algorithm?

Reference to NPM in README.md

I am very happy that you took care of the old chartjs-plugin-downsample plugin.

A hint in the README that you added it to npm would be nice, as the first hints on search engines (depending of the search term of course) point to github instead of npmjs.org.

Suggestion for README.md (in front of configuration):

### Installation

```bash
$ npm install chartjs-plugin-responsive-downsample
```

Preview:

Installation

$ npm install chartjs-plugin-responsive-downsample

Including Plugin as a JS-File

Can you create a *.min.js file to easy include the plugin without npm? Got a simple project for testing ChartJS and the Plugins for it. And don't know if using NPM is the right for the project.

Hope you understand my issue.

Not working with ng2-charts

This plugin really looks awesome! Anyway, maybe I am stupid but I cant make it work with ng2-charts:

import { ResponsiveDownsamplePlugin } from 'chartjs-plugin-responsive-downsample';

export class AppComponent {
   // ...
   chartPlugins = [ResponsiveDownsamplePlugin];
   chartOptions: ChartOptions    = {
      aspectRatio:          3,
      responsive:           true,
      legend:               {display: false},
      scales:               {
        xAxes: [
          {
            ticks: {
              maxTicksLimit: 20
            }
          }
        ]
      },
    };

Template:

<canvas baseChart
              [data]="chartData"
              [options]="chartOptions"
              [labels]="chartLabels"
              [plugins]="chartPlugins"
              chartType="line"
      >
</canvas>

There is no error or something, i just doesnt downsample.

Doesn't work with data with x anymore

As it seems version 1.1.2 introcued a bug. It works not when I use data with t value, but not anymore with data with x value.
The problem seems to be the line
var i = t.x || t.t;
in the minified version.
t.x || t.t return undefined if t.t is undefined...

Use with Chart.js Error

I am getting the following error:
chart.downsample.js:204 Uncaught TypeError: Cannot read property 'getTime' of undefined

Probably because I am using chart.min.js, however, I am including also moment.js before that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.