Use chart.js or highchart API

Hi,

I have one question about charts in Ignition which I think, are ugly and look old. Can we use others Java charts library in Ignition ? For example, I would like to use a new library to my charts look like Chart.js or Highcharts.

Thanks,

Both of those libraries you mentioned are Javascript libraries, not Java libraries.

No, you can’t just drop in another library and expect anything to work.

It’s technically possible to create your own new charting components using the module SDK but it’s a tremendous amount of work.

[quote=“Kevin.Herron”]It’s technically possible to create your own new charting components using the module SDK but it’s a tremendous amount of work.[/quote]Ahem.
Well, if you subclass from the built-in chart components, it’s not quite as difficult as Kevin makes it sound. My NoteChart module is less than 3000 lines of java. Several hundred lines of that are simple boilerplate adapted from the SDK examples.

Thanks for you answers,

I know that chart.js and highcharts are Javascript libraries, but the visual is very cool and easy to read. I hoped that a Java library exists with the same visual.

Will there be an update of charts library in a later version of Ignition ?

flavien, if you are talking about appearance, then you should be able to achieve most if not all of those looks (based on the screenshots I see) using built-in tools as well as JFree Chart API.

Thanks for your answer.
For example, if I want to create or modify a component I have to use Java and JFreeChart API ? Python too ?

Flavien, that depends on what component you are trying to modify and how. For some changes, you can use available properties, for some other changes, you can use Java API, some other changes may require using Ignition SDK to develop your own component.

Will you add a new chart library in the next version of Ignition ?

Flavien, which new library are you referring to?
Also, if you have a feature request to make, you can post it here: http://ideas.inductiveautomation.com
Make sure to describe your use case and rationale in your request.

Spoken like a true professional… Automation professional.

1 Like