Multicolor in same chart

Posted by: nzd on 10 May 2021, 9:23 pm EST

  • Posted 10 May 2021, 9:23 pm EST

    Hello,

    Is it possible to change the color (in this case) for each year?

    Example:
    2013 = red;
    2014 = blue;
    2015 = yellow;
    2016 = green;

    BR,
    Nikolas

  • Replied 10 May 2021, 10:18 pm EST

    Hi Nikolas,
    We are sorry, in the FlexChart, the same series can't have the different color. We have created an enhancement for the same so that it can be reviewed by the concerned team and may be added in the future releases with the internal tracking id C1-3183.

    Regards,
    Manish Gupta
  • Replied 10 May 2021, 10:35 pm EST

    Hi Manish,
    Is it possible to do it with unbound, like we did with FlexGrid?
    Or is unbound not a possibilite on FlexChart?

    I'm currently having this issue with:
    FlexChart and FlexPie

    BR,
    Nikolas
  • Replied 10 May 2021, 11:33 pm EST

    Hi Manish,
    Another question, is there animations available, or will there be later on?

    BR,
    Nikolas
  • Replied 12 May 2021, 6:33 pm EST

    Hi Nikolas,
    We are sorry for the inconvenience, Animation is not supported for the Chart as of now. We have logged an enhancement request with the internal tracking id C1-3184.

    Also, the FlexChart does not allow unbound binding same as the FlexGrid.

    Regards,
    Manish Gupta
  • Replied 4 February 2022, 7:22 pm EST

    Hi,
    The Animation feature has been introduced in the latest build 2021v3 release. Please refer to the following demo sample:
    https://www.grapecity.com/componentone/demos/blazor/blazorexplorer/FlexChart/Animation

    Regards,
    Manish Gupta
  • Marked as Answer

    Replied 23 June 2022, 12:18 am EST

    Hi
    You can specify a color for data points using the series SymbolRendering event.

    <FlexChart ..>
    <SeriesCollection>
    <Series .. SymbolRendering="SymbolRendering" />
    </SeriesCollection>
    </FlexChart>
    void SymbolRendering(object p, RenderSymbolEventArgs e)
    {
    e.Engine.SetFill( e.Index % 2 == 1 ?
    System.Drawing.Color.Blue.ToArgb() : System.Drawing.Color.Red.ToArgb());
    }


  • Replied 23 June 2022, 12:21 am EST

    Hello,

    Thanks for the update, will try it out later.

    Regards,
    Nikolas
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels