Coder Social home page Coder Social logo

Comments (4)

aspirewit avatar aspirewit commented on July 23, 2024

@oupala This plugin only supports simple two-dimensional data.

from hexo-tag-easy-charts.

oupala avatar oupala commented on July 23, 2024

Thanks for the answer.

Is it a limitation from your plugin, or a limitation from the library you're using (if using any)?

Do you think it could be possible to add the time-based-charts feature for a reasonable effort?

from hexo-tag-easy-charts.

aspirewit avatar aspirewit commented on July 23, 2024

@oupala Can you provide some sample data to me?

Time based charts, my understanding is like that, do you think it is correct?

{% barchart 'By Year' %}
Fruit | 2012 | 2013 | 2014 | 2015 | 2016 | 2017
Durian | 80 | 73 | 72 | 62 | 83 | 65
Clementine | 56 | 60 | 50 | 58 | 57 | 63
Mulberry | 83 | 91 | 98 | 82 | 62 | 86
Papaya | 54 | 58 | 67 | 64 | 50 | 93
{% endbarchart %}

by-year

from hexo-tag-easy-charts.

oupala avatar oupala commented on July 23, 2024

Sure I'll try to give you as much information as possible.

For time based charts, I would more imagine a linechart. But imagine that the time serie is missing some data. You don't have the data for one year, you should have the missing year displayed on screen, event with no date.

{% linechart 'Linechart with Vertical Headings' %}
Date | Sales
2012 | 56
2013 | 85
2016 | 68
2017 | 53
{% endlinechart %}

Years 2014 and 2015 are missing, but they should appear on the graph.

And now, imagine that the date is not a year, but a specific day:

{% linechart 'Linechart with Vertical Headings' %}
Date | Sales
2012-01-01 | 56
2013-03-28 | 85
2015-07-01 | 93
2016-12-25 | 68
2017-10-28 | 53
{% endlinechart %}

Each data do not represent a whole year, but just an event on a specific day. The event should be represented on the timeline, at the moment it happened.

Do you see what I mean?

Some example from metricsgraphicsjs.

from hexo-tag-easy-charts.

Related Issues (4)

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.