TLineSeries, Skipping NULL or zero
Posted: Fri Dec 07, 2007 4:38 pm
Is it possible to exclude NULL values from an axis using a TLineSeries?
The Chart: I have a chart with a TLineSeries that displays point values on the Y axis, and group numbers on the X axis. The group numbers on the X axis represent groups of data (1,2,3,..).
The Problem: I allow users to choose which groups of data they want to see. If they choose groups 1, 40 and 64, there are large gaps on the chart; meaning, the group numbers with no data still display between the selected group numbers (1,2,3..40,41,42,... etc.).
The Question: So, is it possible to display only the selected group numbers on the bottom axis, and exclude empty points? The objective is to keep the relevant data compact. So the bottom axis would display (to use my foregoing example) only 1, 40, 64, without the intervening numbers.
The Chart: I have a chart with a TLineSeries that displays point values on the Y axis, and group numbers on the X axis. The group numbers on the X axis represent groups of data (1,2,3,..).
The Problem: I allow users to choose which groups of data they want to see. If they choose groups 1, 40 and 64, there are large gaps on the chart; meaning, the group numbers with no data still display between the selected group numbers (1,2,3..40,41,42,... etc.).
The Question: So, is it possible to display only the selected group numbers on the bottom axis, and exclude empty points? The objective is to keep the relevant data compact. So the bottom axis would display (to use my foregoing example) only 1, 40, 64, without the intervening numbers.