Skip to content

StrokeColor added to mutator and Mutator example in LineChart#630

Merged
joadan merged 1 commit into
apexcharts:masterfrom
PeerConradi:master
Oct 16, 2025
Merged

StrokeColor added to mutator and Mutator example in LineChart#630
joadan merged 1 commit into
apexcharts:masterfrom
PeerConradi:master

Conversation

@PeerConradi
Copy link
Copy Markdown
Contributor

Example added for DataPointMutator inside ApexPointSeries and added the ability to change the StrokeColor (not just the FillColor).

Added a small demo if this to the documentation.

grafik
<ApexPointSeries TItem="Order"
                         Items="Orders"
                         Name="Gross Value"
                         
                         SeriesType="SeriesType.Line"
                         XValue="@(e => e.OrderDate)"
                         YValue="@(e => e.GrossValue)"
                         DataPointMutator="MutateDataPoint"
                         OrderByDescending="e=>e.Y" />
private void MutateDataPoint(DataPoint<Order> point)
    {
        var max = Orders.Max(e => e.GrossValue);

        if (point.Items.Any(n => n.GrossValue == max))
        {
            point.FillColor = "#FF0000";
            point.StrokeColor= "#00FFFF";
        }
    }

@joadan joadan merged commit 8101600 into apexcharts:master Oct 16, 2025
3 checks passed
@joadan
Copy link
Copy Markdown
Collaborator

joadan commented Oct 16, 2025

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants