We have an idea to create common tooltip settings interface. Currently, tooltip settings is somehow declared as part of existing widgets: https://github.com/gravity-ui/chartkit/blob/main/src/plugins/highcharts/types/widget.ts#L52 <img width="847" alt="image" src="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/gravity-ui/chartkit/assets/15093838/df15b148-11b7-4b95-967d-8d3c0e7eb10f"> This means, that we need to prepare these settings according to widget plugin we are using. It would be better to use common interface, independent on type of widget or plugin we are going to use. In the meantime we should limit number of places, where tooltip settings can be set. Currently, we can set tooltip settings in each series and globally for widget for Highcharts: https://github.com/gravity-ui/chartkit/blob/main/src/plugins/highcharts/types/widget.ts#L52 Places where tooltip settings can be set must be same for each widget type and plugin.
Activity
kuzmadom commentedon May 8, 2024
It should be possible to specify formatting settings such as:
korvin89 commentedon May 8, 2024
@artemipanchuk @kuzmadom What do you think about using this interface?