How to control height or top margin of a chart

0 Answers 17 Views
Charts
Jerry
Top achievements
Rank 1
Iron
Iron
Iron
Jerry asked on 12 Dec 2023, 03:37 PM

I have a line chart and an area chart.

I would like the area chart to be shown inside of the line chart.

How can I control the area chart's height or top margin? To keep it inside the line chart?

Here is what my chart looks like. I would like to keep the green area inside of the red. Is this possible?

https://dojo.telerik.com/@jerry/owIdiWes

 

 

Jay
Top achievements
Rank 2
Iron
Iron
Veteran
commented on 12 Dec 2023, 08:43 PM

You could try setting a max on the second axis, e.g.

                  {
                    name: "Area2",
                    visible: false,
                    line: { visible: false },
                    majorGridLines: { visible: false },
                    max: 150                    
                  }
though in practice you'll probably want to determine the max value in code.
Jerry
Top achievements
Rank 1
Iron
Iron
Iron
commented on 12 Dec 2023, 08:50 PM

This works perfectly!

 

No answers yet. Maybe you can help?

Tags
Charts
Asked by
Jerry
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or