cnguy / gopherjs-frappe-charts

[experimental/outdated; frappe v0.07] GopherJS bindings for frappe/charts - simple Go charts for your frontend
MIT License
20 stars 1 forks source link

Expose some of the useful chart properties #7

Open cnguy opened 6 years ago

cnguy commented 6 years ago

Since JavaScript properties shouldn't always be accessed (no "private"s), it might be better to restrict some access. Users can always call the *js.Object functions if they really want a property too.

Some properties that will definitely be useful are the Values properties for example. This will allow users to do things such as searching for a value in the Values properties and then deleting it from the values via chart.RemovePoint(index).