Code: Select all
`[url=/events/discover?${chart.aggregation}={point.key}]View[/url]`,
Code: Select all
options.series = allSeriesState.map((seriesState) => {
return {
seriesId: seriesState.seriesId,
name: seriesState.name,
tooltip: {
headerFormat: `${chart.xTitle}: {point.key:%Y-%m-%d}`,
pointFormat:
`{point.y} [/b]{series.name} Events` +
`[url=/admin/portfolio/miniApp/events/discover?event_type={series.name}&index=${seriesState.index}&timeFrame=${chart.timeFrame}&${chart.aggregation}={point.key}]View in Discover[/url]`,
footerFormat: ''},
type: seriesState.type,
color: seriesState.color,
data: seriesState.color && seriesState.type ? allSeriesData?.[seriesState.seriesId] || [] : []
}
});