In the attachment I am showing you a different solution based on 4 constant lines for the limitations of the measurement rectangle, a DataPointDragTool (to drag each constant line) and a TUserDefinedChartTool (to drag a rectangle of the chart where the constant lines follow this rectangle). Each movement of a rectangle triggers the calculation of the statistics for the points enclosed by the constant lines.
Sorry, I forgot to add it. The zipped project now is attached to the post where it is mentioned.
I am attaching an extended version of the demo. It contains a ChartListbox enumerating the data series of the chart. The selected series is analyzed, you can select several series by SHIFT or CTRL-clicking on their name in the listbox.
This is the "official" TAChart documentation
...
There is a bunch of tutorials
To help improving the docs, I could start an Events section in the TAChart docu Wiki page if you allow me that. However, since I don't have much knowledge I can only start with the framework.Thanks for the offer, but an empty framework is not much help ;)
I just uploaded an enhanced xml documentation file for TAChart to trunk.
There's still a lot to do, and this is where you could help:
- I have several series and some are not active. How can I achieve that the non-active series don't appear in the TChartListbox?My example abuses the ChartListBox to some extent because normally there are checkboxes by which the series can be shown and hidden, and I removed the checkboxes (cloShowCheckboxes in Options) because showing/hiding in the ChartListbox screws up the logic of the example.
- I have several series and some are not active. Therefore they don't appear in the legend. But when I now start the data selection mode they all appear in the legend. When I leave the selection mode the legend looks fine again. So how can i keep the legend untouched while being in selection mode.I don't know what you are doing. Please try to reduce your project to a minimum level and post it here.
- your solution allows to drag the TConstantLines. The problem is that the user is not aware of that feature. So what I want is that when the mouse is over a TConstantLine, the cursor changes to crSizeNS or crSizeWE, respectively. Is that possible?I know of this limitation, but don't see a simple way to fix it (I myself did not write this part of TAChart).
The TChartListbox has an event OnAddSeries in which you can set the boolean argument ASkip to true to prevent adding a series. In my example this is already used to remove the constant lines from the ChartListBox
- I have several series and some are not active. Therefore they don't appear in the legend. But when I now start the data selection mode they all appear in the legend. When I leave the selection mode the legend looks fine again. So how can i keep the legend untouched while being in selection mode.QuoteI don't know what you are doing. Please try to reduce your project to a minimum level and post it here.
- your solution allows to drag the TConstantLines. The problem is that the user is not aware of that feature. So what I want is that when the mouse is over a TConstantLine, the cursor changes to crSizeNS or crSizeWE, respectively. Is that possible?I know of this limitation, but don't see a simple way to fix it (I myself did not write this part of TAChart).
It it is attached. I also attached a screencast to show the problem: when you activate the measurement, the legend suddenly shows series that are purposely not shown in the legend.
Yes, sorry for my fault.It it is attached. I also attached a screencast to show the problem: when you activate the measurement, the legend suddenly shows series that are purposely not shown in the legend.
OK, I could fix this. The CustomLines had the property to be shown in the legend but since they were not active they were not shown. When I started the measurement in my example program, the lines became active.
I already use OnAddSeries to skip some unwanted series. however, in my applications, there can be up to 8 series. The user decides at runtime what series is active. So in case he uses 4 series, only these 4 active series should be listed in ChartListBox.
is this possible?
But how can this be done?