Giter Club home page Giter Club logo

npm-stats's People

Contributors

apertureless avatar olitaylor avatar vinmaster avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

npm-stats's Issues

Chart service seems to be broken

Today, 26-th of may, 2018, npm-stats.org seems to be not showing charts anymore.
There are no errors in console and charts are not showing up (at least in Chrome and Opera - both mobile and desktop).

Tested with a bunch of Vue packages, including:

  • vue-meta
  • vue-simple-suggest
  • vue
  • vuex

@apertureless, can you confirm this?

Get package name from query param

Actual behaviour

You are at / page and type in the package name. A v-if condition renders the chart on the current page.

Wanted behavior

If you type in the package name the the charts are loaded without page reload but the package name gets pushed to the url. So you can share the link.

npm-stats.org/#/vue-chartjs
npm-stats.org/#/vue

Add settings for time range

Right now the time range is set to last-month as a default.
Additionally a settings page is needed to set start and end period.

Move to nuxtjs

I guess it would be a good idea to refactor npm-stats to nuxtjs to utilize ssr

Fetch new data on date change

Right now, after changing the date in the settings, you need to press the find button.
Would be better to fetch the data directly on change of the start date, if the packageName is set. As the end date default it set to the current date.

Question about used solution to render graphs

Sorry to ask this here but I couldn't find any solution for my issue.

I'm trying to use a similar approach to your project where labels and datasets are defined in a child component with binds to props in the parent component but I'm not getting any results.

"Vue.js devtools" add-on shows that props contain data passed in the parent component however the initial console log show empty arrays:

loadData init
Array []
Array []

So due to the fact that "Chart.js does not provide a live update if you change the datasets" I tried reactiveProp mixin which throws the error below, most likely because I'm updating only a single dataset:

Error in callback for watcher "chartData": "TypeError: newData.datasets is undefined"

Questions:

  1. How the charts in your project are updated if initially, bound arrays are empty and I don't see any related mixin or watcher?

  2. How to use vue-chartjs mixins to provide live updates in this case? I want to keep all the options and config in the chart component and just update the labels and datatsets.

This is my example in a codesandbox.

Btw, this works with computed properties but not with data/methods for some reason.

Thanks for this great software!

Add social sharing

Social Sharing & SEO

๐Ÿ’ก Idea

It would be cool if you could share the current statistics page on social media. With a screenshot of the chart.

โšก Services

  • Twitter
  • Facebook
  • ?

๐Ÿ”– Information

Preview

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.