Pass callback function into chart config to customize chart labels and datapoints

Related products: GoodData.CN

Currently when using a date measure `year month` or `week in year` etc, the format of the data isn’t quite what we need.  For example, week in year is an integer 1-53, but we need something like ‘dd/mm’ so it’s more human readable.  Another feature that would be useful is to be able to “skip labels” so that we can display longer labels without truncating.

So rather than break this up into multiple features or options, it’d be useful to have the ability to pass in a callback when configuring the charts for react components to be able to format the labels ourselves or return `null` or ‘’ to denote a label shouldn’t be rendered, chart.js has a similar feature to this for reference.

 

Thanks,

Hello @hpatskan,

For example, week in year is an integer 1-53, but we need something like ‘dd/mm’ so it’s more human readable. 

The issue you are raising is a known issue for us and we are set to address it soon for our Cloud and Cloud Native products. Please stay tuned for the updates.

 

Another feature that would be useful is to be able to “skip labels” so that we can display longer labels without truncating.

So rather than break this up into multiple features or options, it’d be useful to have the ability to pass in a callback when configuring the charts for react components to be able to format the labels ourselves or return `null` or ‘’ to denote a label shouldn’t be rendered, chart.js has a similar feature to this for reference.

Thanks for the suggestion! I like what you’re proposing and will pass it down to our UI SDK team. 


Updated idea statusNewReceived