Polar Chart


https://www.nevron.com/Forum/Topic2629.aspx
Print Topic | Close Window

By Mario Lozano - 15 Years Ago

Hi, I working with Nevron 3DChart for Activex and currently using a Polar Chart to present information.

But, I have a problem, I'm trying to create a polar chart with information from 24 hours, I'm doing this creating or adding a new category each second, so I will have 86400 categories at the end of the 24 hours.

I did some tests, but it seems that after some time or after many categories the process of adding more categories reduce the performance and it takes more time to add a new category.

And that is the problem because instead of 86,400 categories, we only have a round 82,000 and 83,500 categories added and we can't display the information properly.

There is another way to handle all this information with Nevron Chart ?????

Thanks and regard

ML

By bob milanov - 15 Years Ago

Hi Mario,

You can call the NChart1.Categories.SetSize method to initially resize the data to this large value. This should speed data feed time as the control will not have to resize the data storage each time a new value is added. Same is valid for the Series/Levels dimensions if you use them.

Hope this helps - let me know if you have any questions or meet any problems.

Best regards,
Bob

By Mario Lozano - 15 Years Ago

Hi,

Thanks a lot for replying

I did a test setting size for categories and is taking around 5 secs to set the size to 86400 (It's Ok for me), but when I set values to category chart0.DataAt(1, 0, 0).Value1 is taking 14 secs to complete the process.

I have timer running each 1000 ms, the timer runs properly, the problem is when I reach the part of code of the value assignment the process is taking almost 14 or 15 secs, this is not good, because Obviusly I can't present the information each second.

Thanks again for you help, hope you can help me again

By bob milanov - 15 Years Ago

Hi Mario,

I would suggest you first resample the data before feeding it to the control - displaying 84K of data points cannot be handled realtime and I suggest you bring this number to something like 500-1000. The easy way to do that is by taking a group of say 20 points and returning the min/max values in each group for display. That way you'll not loose data peaks, and is the way for resampling used in Excel chart for example.

Best regards,
Bob

 

By Mario Lozano - 15 Years Ago

Hi Bob,

Well, it seems that is the only way to do it, let me try it.

Thanks a lot for your support !!!

Best Regards,

ML