FlexChart's BackgroundImage Issue

Posted by: fabio.lavitola on 20 August 2022, 7:36 pm EST

    • Post Options:
    • Link

    Posted 20 August 2022, 7:36 pm EST

    Hi,

    with Legacy C1Chart (C1.Win.C1Chart.C1Chart) I was able to show a background Image to the Chart until I start populate it:

    C1_Chart_Test.BackgroundImage = Image.FromFile(…)

    After that I can see the Image in the background.

    With FlexChart, the same method does not shows any Image…

    I also didn0’t find anything in any sample you provided.

    What Am I doing wrong ?

    Thanks

  • Posted 20 August 2022, 7:49 pm EST

    P.S. “RenderMode” property is set to “DirectX”; the default method works

  • Posted 21 August 2022, 6:36 pm EST

    Hi fabio,

    Thanks for reporting this issue. We have replicated this issue at our end. This seems like a bug. So, that we have escalated it to the development team. We will inform you whenever we get any update on this. [Internal Tracking Id - C1CHART-2115]

    However, You can do a workaround for the same, by handling rendering event of FlexChart as:

    
    private void FlexChart_Rendering(object sender, RenderEventArgs e)
    {
        var image = Image.FromFile("../../grapecity.png");
        e.Engine.DrawImage(image, 0, 0, flexChart.PlotRect.Width, flexChart.PlotRect.Height);
    }
    
    

    Please refer the attached sample for the same : FlexChartBackgroudImage.zip

    Best Regards,

    Nitin.

  • Posted 21 August 2022, 6:50 pm EST

    Hi NItin,

    atm I’ll change the rendermode via code just before populating with series, waiting for the final patch.THanks

    Regards,

    Fabio La Vitola

  • Posted 4 February 2023, 9:11 pm EST

    Bug has been solved, thanks !

Need extra support?

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

Learn More

Forum Channels