C Chris2 Well-Known Member Licensed User Longtime User Aug 11, 2022 #1 With bar charts on the xChartLite library, I'm finding that sometimes the values shown are lagging where the mouse pointer actually is. For example, in this screen shot: the values shown are for where the vertical red line is drawn, but the mouse pointer is actually a few bars to the left of this. The problem is only really noticeable with a relatively high number of bars (>50 or so). The amount of 'lag' seems to correspond to the distance between the y-axis and the position of the first bar. So for example, you'll see it happen if you change the loop in the xChartLiteDemo StackedBarChart sub to: B4X: Copy Private Sub CreateStackedBarData ...... ' add the items For i = 0 To 100 StackedBarChart1.AddBarMultiplePoint(2005 + i, Array As Double(Rnd(0, 1000), Rnd(0, 1000), Rnd(0, 1000))) Next ...... End Sub It occurs on all the types of bar chart, but not line charts. Is there anything that can be done to correct this?
With bar charts on the xChartLite library, I'm finding that sometimes the values shown are lagging where the mouse pointer actually is. For example, in this screen shot: the values shown are for where the vertical red line is drawn, but the mouse pointer is actually a few bars to the left of this. The problem is only really noticeable with a relatively high number of bars (>50 or so). The amount of 'lag' seems to correspond to the distance between the y-axis and the position of the first bar. So for example, you'll see it happen if you change the loop in the xChartLiteDemo StackedBarChart sub to: B4X: Copy Private Sub CreateStackedBarData ...... ' add the items For i = 0 To 100 StackedBarChart1.AddBarMultiplePoint(2005 + i, Array As Double(Rnd(0, 1000), Rnd(0, 1000), Rnd(0, 1000))) Next ...... End Sub It occurs on all the types of bar chart, but not line charts. Is there anything that can be done to correct this?
C Chris2 Well-Known Member Licensed User Longtime User Aug 15, 2022 #2 Solved by @klaus... [B4X] [XUI] xChartLite b4xlib Current version : 1.9 xChartLite is a b4xlib library, it is a lite version of the xChart library. A mini version is also available: xChartMini. It has automatic scales, automatic text size according to the chart size. These can also be set manually. I am convinced that many user do not need... www.b4x.com Thank you (again)! Upvote 0
Solved by @klaus... [B4X] [XUI] xChartLite b4xlib Current version : 1.9 xChartLite is a b4xlib library, it is a lite version of the xChart library. A mini version is also available: xChartMini. It has automatic scales, automatic text size according to the chart size. These can also be set manually. I am convinced that many user do not need... www.b4x.com Thank you (again)!
klaus Expert Licensed User Longtime User Aug 15, 2022 #3 Sorry for not having answered here. I was sure I did, but I probably missed it. Upvote 0
C Chris2 Well-Known Member Licensed User Longtime User Aug 16, 2022 #4 klaus said: Sorry for not having answered here. I was sure I did, but I probably missed it. Click to expand... No worries. I spotted your fix in the xChartLite library thread. I thought it sensible to add a 'solved' post here for future reference, but wasn't sure about the etiquette of marking my own post as the solution when it wasn't me that solved it . Upvote 0
klaus said: Sorry for not having answered here. I was sure I did, but I probably missed it. Click to expand... No worries. I spotted your fix in the xChartLite library thread. I thought it sensible to add a 'solved' post here for future reference, but wasn't sure about the etiquette of marking my own post as the solution when it wasn't me that solved it .
klaus Expert Licensed User Longtime User Aug 16, 2022 #5 No problem, as you added the link to the solution. Upvote 0