jQuery UI Widgets › Forums › Angular › jqxChart rangeselector and two lines xAxis format
This topic contains 8 replies, has 2 voices, and was last updated by fab.silvereye 5 years, 5 months ago.
-
Author
-
1. When I use rangeselector option within the chart, if I select a range with range selector and then I change data, even if I delete rangeselector and I create a new one, it ramain with the same interval selected and I cannot reset this range. So I have to destroy chart and create new one to resolve the problem.
2. I’m using datetime labels on XAxis, your default format is with two lines but you use a format too long for me so I need to change it. I created format function and it works properly but I can’t write two lines. I tried also with ‘/n’ or ‘</br>’ but the label remain on one line, so my format becomes longer than yours.
Hello fab.silvereye,
If I understand you correctly then I think this forum topic where we have a similar discussion will be helpful:
https://www.jqwidgets.com/community/topic/reset-range-selection-programmatically/#post-71175
It is created with JavaScript/jQuery but you could use the same approach.About the second question it should happen with a
<br>
tag.
Please, take a look at this demo:
https://stackblitz.com/github/jqwidgets/angular/tree/master/chart/textwrapping/Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comI read that post for reset of range selector but the only post that works is that with
chart.source = sampleData1;
chart._selectorRange=[];
chart.update();but _selectorRange doens’t exist in my jqxChart version!
Hello fab.silvereye,
I would like to ask you for more details if the example below does not help you:
https://stackblitz.com/edit/github-eak5h2-mb4ij1
You do not need to manipulate the internal properties of the jqxChart.
If you want to set a new value for therangeSelector
option or to reset it then you should set the specificminValue
andmaxValue
for thexAxis
property.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comYes range selector change min and max with update but the selection inside this interval is not cleared but it remains to the old range.
Hello fab.silvereye,
I checked again the example that I provided to you and it seems to work fine.
Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comExample works only the first time, if you change zoom and update again the range selector not reset but stay in the last
selection range you made before.Hello fab.silvereye,
I tested this example (again with small changes) and it seems to work fine:
https://stackblitz.com/edit/github-eak5h2-krxnaq
There is a lot of information that is rendered and it needs time to visualize it.
Could you provide us with one simplified example that demonstrates your case?Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comHi
also your example have same problem of mine, it works the first time, try to drag the range selector and try to press
update1 or update2 you will see that range selector doensn’t reset anymore but stay in the same old interval. -
AuthorPosts
You must be logged in to reply to this topic.