Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

Cannot assign to read only property 'data' of object '#<Object>' #49

Open
mistre83 opened this issue Jul 1, 2016 · 2 comments
Open

Comments

@mistre83
Copy link

mistre83 commented Jul 1, 2016

I'm trying to use LineChart with Dates and i've just copied this example but i get the error on issue title.

This is a jsfiddle example: https://jsfiddle.net/cnomx3w1/

@yang-wei
Copy link
Owner

yang-wei commented Jul 2, 2016

Unlike AreaChart, we do not process date object in LineChart (which is not consistent)

Would you like to give it a try ?

@mistre83
Copy link
Author

mistre83 commented Jul 4, 2016

Yes, I can evaluate to use AreaChart instead of LineChart. At the end, it have all information i need.

Just to be sure, i have a set of measurements and this can be registered by hour, so i will have to use "hour" as tick interval on the X axis. For the Y axis, i dont have a fixed "cap".

For example, one chart can have a cap of 10k, and another can have a cap to 1k. I will use this as "generic" container, so i cant provide a cap.

How i can configure AreaChart to have this behaviour ?

In xAxisTickInterval i can say:

xAxisTickInterval={{unit: 'hour', interval: 2}} ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants