GoogleWebComponents / google-chart

Google Charts API web components
https://www.webcomponents.org/element/@google-web-components/google-chart/elements/google-chart
Apache License 2.0
358 stars 130 forks source link

When only 1 record provided axis date shown is always 1st january #165

Closed Junikorn closed 7 years ago

Junikorn commented 8 years ago

$0.set('rows', [[new Date('2016.09.09'), 2, 4]]); $0.set('type', 'line') $0.set('cols', [{"type":"date","label":"Time"},{"type":"number","label":"Morning session"},{"type":"number","label":"Evening session"}]); $0.set('options', {"title":"Average session yield","chartArea":{"left":80,"width":863,"top":40,"height":260},"curveType":"function","pointSize":4,"hAxis":{"title":"Date","format":"dd.MM"},"vAxis":{"title":"Session yield (kg)"},"legend":{"position":"bottom"}});

wesalvaro commented 7 years ago

Hi!

You'll want to ask this question in a different forum. See here: https://github.com/google/google-visualization-issues/issues