Is it possible to remove this gap when drawing an area & line series to the same chart?

1 Answer 26 Views
Charts
Mark
Top achievements
Rank 3
Iron
Iron
Iron
Mark asked on 19 Dec 2023, 05:12 PM | edited on 19 Dec 2023, 05:13 PM

Hi

When we plot an area series on the same chart as a line series we find that the area series no longer fills the full width of the chart, as shown below.  Here is a REPL with the code to reproduce it.

Is there a way to restore the behaviour of the area series, like this?

Thank you

Mark

1 Answer, 1 is accepted

Sort by
1
Accepted
Hristian Stefanov
Telerik team
answered on 22 Dec 2023, 09:47 AM

Hi Mark,

I'm pasting here the answer I gave you in the public feature request item so the forum community can benefit from it.

=======

The way the area series acts in combination with the line series is influenced by the line series, which centers the categories within each sector. Consequently, the area series aligns itself accordingly.

To address this, we have a separate feature request: Add the justified configuration for the Chart. Once implemented, you will gain the flexibility to fine-tune category positioning with line series configuration, eliminating any space at the beginning and end of the area series. I voted there on your behalf.

=======

Regards,
Hristian Stefanov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Tags
Charts
Asked by
Mark
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Hristian Stefanov
Telerik team
Share this question
or