P Peter Meares Member Licensed User Longtime User Nov 13, 2023 #1 I was starting to use xChartLite. Brilliant library, thanks Klaus. I invoked an error from the library on line 1748. Not sure you would want put a catch in place. Entirely my own fault but after some debugging I found that the xCustomview I copied across was for a BAR chart, and I was filling it with line data. It correctly flagged "Bar width = too small !!! Drawing of Bar chart skipped" and then failed on line 1748 when it was trying to use bitmapcreator with empty arrays. Easily fixed by changing the view to a "LINE" chart.
I was starting to use xChartLite. Brilliant library, thanks Klaus. I invoked an error from the library on line 1748. Not sure you would want put a catch in place. Entirely my own fault but after some debugging I found that the xCustomview I copied across was for a BAR chart, and I was filling it with line data. It correctly flagged "Bar width = too small !!! Drawing of Bar chart skipped" and then failed on line 1748 when it was trying to use bitmapcreator with empty arrays. Easily fixed by changing the view to a "LINE" chart.
peacemaker Expert Licensed User Longtime User Nov 13, 2023 #2 Why posted as B4J library ? It's to QUESTION forum. Upvote 0
klaus Expert Licensed User Longtime User Nov 13, 2023 #3 For the moment i will no change the code because it would need to check for every routine specific to a given chart type to check if the chart type is the correct one. Quite some code to add. Upvote 0
For the moment i will no change the code because it would need to check for every routine specific to a given chart type to check if the chart type is the correct one. Quite some code to add.
P Peter Meares Member Licensed User Longtime User Nov 13, 2023 #4 peacemaker said: Why posted as B4J library ? It's to QUESTION forum. Click to expand... It was a problem in a library so seemed logical. Sorry. Upvote 0
peacemaker said: Why posted as B4J library ? It's to QUESTION forum. Click to expand... It was a problem in a library so seemed logical. Sorry.
peacemaker Expert Licensed User Longtime User Nov 13, 2023 #5 Peter Meares said: seemed logical Click to expand... You are wrong. Lib topics are about a new library publish. Any troubles are to questions. Else half of errors will be such topics. Upvote 0
Peter Meares said: seemed logical Click to expand... You are wrong. Lib topics are about a new library publish. Any troubles are to questions. Else half of errors will be such topics.
klaus Expert Licensed User Longtime User Nov 14, 2023 #6 Well, looking a bit deeper into the problem, it does not need that much code in the xChartLite and xChartMini libraries. I have added a check in the different chart specific routines to see if they are compatible with the selected chart type. If the chart type is not compatible a Log is written like this: I have also moved the ChartType property on top in Property list in the Designer. Upvote 0
Well, looking a bit deeper into the problem, it does not need that much code in the xChartLite and xChartMini libraries. I have added a check in the different chart specific routines to see if they are compatible with the selected chart type. If the chart type is not compatible a Log is written like this: I have also moved the ChartType property on top in Property list in the Designer.