rd3 icon indicating copy to clipboard operation
rd3 copied to clipboard

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

Open mistre83 opened this issue 9 years ago • 2 comments
trafficstars

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/

mistre83 avatar Jul 01 '16 14:07 mistre83

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

Would you like to give it a try ?

yang-wei avatar Jul 02 '16 01:07 yang-wei

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}} ?

mistre83 avatar Jul 04 '16 10:07 mistre83