frappe / charts

Simple, responsive, modern SVG Charts with zero dependencies
https://frappe.io/charts
MIT License
14.94k stars 718 forks source link

Date magnitudes not respected along X Axis #78

Open rickysahu opened 6 years ago

rickysahu commented 6 years ago

Expected Behaviour

labels consisting of dates should be displayed temporally with appropriate distances between consucutive dates with gaps.

Actual Behaviour

For example. a graph with dataset of datasets: [{values: [1,2,10]}] looks the same regardless of if the labels are labels: ["2017-01-01", "2017-01-02", "2017-01-10"] or labels: ["2017-01-01", "2017-01-02", "2017-01-03"]

on the graph with the last date of 2017-01-10 should be set much farther apart and the slope between 01-02 and 01-10 should be much less.

Steps to Reproduce:

*

NOTE: Add a GIF/Screenshot if required.

screen shot 2017-11-20 at 3 47 33 pm screen shot 2017-11-20 at 3 47 16 pm

Frappé Charts version: 0.0.7

smeijer commented 4 years ago

I'm having the same issue with Date objects as label, spot the missing month:

image