apexcharts / Blazor-ApexCharts

A blazor wrapper for ApexCharts.js
https://apexcharts.github.io/Blazor-ApexCharts
MIT License
794 stars 91 forks source link

context.DataPoint.FillColor never set #310

Closed itniels closed 10 months ago

itniels commented 11 months ago

Information

Type: BUG Blazor-ApexCharts v1.2.1 BlazorServer .NET 7.0

Description

It seems when creating a custom tooltip using <ApexPointTooltip> then @context.DataPoint.FillColor is always empty, so there is no way to determine the color of the hovered item and color the popup accordingly.

I have tried with Theme palette and custom colors, the result is the same.

Thanks 🙂

joadan commented 11 months ago

Here is an sample: https://apexcharts.github.io/Blazor-ApexCharts/features/tooltip#point%20color

itniels commented 11 months ago

@joadan Thank you very much. Ahh I see, it has to be manually set in your example.

There is no way to set it based on the hovered item color from the palette?

joadan commented 11 months ago

Hello,

I'm not aware of any way to get the color when specified in the theme palette.