Note that there are some explanatory texts on larger screens.

plurals
  1. POCan I make a Flex line chart not purge values past max/min values
    text
    copied!<p>I want to use min/max values not to restrict what values <em>exist</em> but what values are <em>shown</em>. </p> <p>I am having issues with both X and Y axes and not sure if flex is capable of doing what I want...</p> <h3>on the Y axis</h3> <p>I am showing different days, and I want the scale to be the same on all the charts, but there is no absolute maximum value. I set the maximum to 18 which works great until a point with the value of 24 shows up. And instead of the line going off the chart or showing as high as it goes, it is simply removed from the dataset. Is there a way to keep it in the data set and still show it somehow? Like charts where arrows indicate out of range values and still allow you to access them?</p> <h3>on the X axis</h3> <p>I have a line chart that is plotting a changing value (captured at irregular intervals) over the course of a day. As of now because I have the DateTimeAxis restricted to a 24 hour period (how I want it) there is dead space before the first and after the last data point.</p> <p>I'd like the line to continue if there is a following or preceding data point available. I am providing the following and preceding data points to the chart. But the chart is just ignoring datapoints outside of the range instead of continuing the line off the edge. Is there any way I can render the whole series but only show a specific 24 hours of it?</p> <pre><code> private function loadDayComplete():void { minChartDate = new Date; minChartDate.fullYear = currentDate.fullYear; minChartDate.month = currentDate.month; minChartDate.date = currentDate.date; minChartDate.hours = offset; minChartDate.minutes=0; minChartDate.seconds=0; minChartDate.milliseconds=0; maxChartDate = new Date; maxChartDate.time = minChartDate.time + 1000*60*60*24; glucoseSeries.dataProvider = bgResults; bgTimeAxis.minimum = minChartDate; bgTimeAxis.maximum = maxChartDate; &lt;mx:LineChart showDataTips="true" id="GlucoseChart"&gt; &lt;mx:horizontalAxis&gt; &lt;mx:DateTimeAxis id="bgTimeAxis" dataUnits="minutes" parseFunction="parseDateString" displayLocalTime="true" /&gt; &lt;/mx:horizontalAxis&gt; &lt;mx:series&gt; &lt;mx:LineSeries id="glucoseSeries" showDataEffect="{dataIn}" radius="10" width="100" form="curve" displayName="BG" yField="Value" xField="DateTime"&gt; &lt;mx:itemRenderer&gt; &lt;fx:Component&gt; &lt;skins:MealBlobItemRenderer/&gt; &lt;/fx:Component&gt; &lt;/mx:itemRenderer&gt; &lt;/mx:LineSeries&gt; &lt;/mx:series&gt; &lt;/mx:LineChart&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload