This is a migrated thread and some comments may be shown as answers.

Stock Chart - Moving ValueAxis sqeezes the chart

3 Answers 89 Views
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 21 Nov 2019, 04:01 PM

Hi there,

 

I'm trying to use the stock chart. So far ok, save one issue. I have three value axis and want to move one of them to the right. Trying to,using axis-crossing-value, gives me following strange behavior.

 

When leaving all three axis to the left with

 <kendo-stockchart :category-axis-axis-crossing-value="[0,0,0]">

the three axis appear on the lft and the chart lokks ok (see pic 1)

When trying to move one ofthe axis to the right with

 <kendo-stockchart :category-axis-axis-crossing-value="[0,0,10000]">

the whole chart is sqeezed (see pic 2). It seems, thatthe chart is sqeezed in between the axis instead of moving the axis.

 

Any suggestion for a workaround would be great.

 

Thanks again

3 Answers, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 25 Nov 2019, 11:46 AM

Hello Oliver,

I am afraid that the observed result is a bug in the StockChart widget when configuring 2 + 1 axis for its main pane. Here you could find the GitHub item on that. Here is the GitHub item, where you could track the bug fix status:

https://github.com/telerik/kendo-ui-core/issues/5445

Note that at this point I won't be able to offer you a viable workaround for the above. Therefore, I would recommend you to keep tracking the above issue and update the Kendo version used as soon as the fix has been provided.

As a small token of gratitude for bringing that problem to our attention, I have updated your Telerik points.

Regards,
Veselin Tsvetanov
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Oliver
Top achievements
Rank 1
answered on 25 Nov 2019, 07:48 PM

Hi Veselin,

thank you for your response. I found a workaround for that case. Only works in a scenario, when you want to move one axis to the right and two to the left.

Identify the axis you want to the right and define it as the second axis and define the crossing value only for the second axis to be moved to the right. That moves the second axis to the right without squeezing the chart and everything is as expected.

<kendo-stockchart :category-axis-axis-crossing-value="[0,10000,0]">

 

That only works for the second axis. If you try to move the first or third axis with values > 0, it will squeeze the chart again.

 

 

 

 

0
Veselin Tsvetanov
Telerik team
answered on 27 Nov 2019, 01:30 PM

Hello Oliver,

Thank you for the suggested workaround, I have just updated the GitHub item, so it includes your suggestion.

Regards,
Veselin Tsvetanov
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Oliver
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Oliver
Top achievements
Rank 1
Share this question
or