title: Dojo charting: Can i change the color of the line based on the value?
body: <p>I have a working chart with Dojo 1.8.</p>
  
  <pre><code>chart1 = new dojox.charting.Chart2D("chart1");
  chart1.addPlot("default", {type: "Lines", ...
  chart1.addSeries("Series A", [{ x: 1, y: 2.3, tooltip: "Value 1"}, ...
  </code></pre>
  
  <p>My data from the series gets displayed correctly as line and the whole line (series) gets the color 'Green'.
  I know how to change the color for the whole series, but would it be possible that the line changes its color based on the data values? Lets assume the x-axis is a time axis and I need the line (series) to be green for until today, and then red for the future values.
  Would this be possible and how ?
  (I am using markers for the values. If these could change based on the value it would be enough)</p>
  
  <p>I found something something like this in the documentation:</p>
  
  <pre><code>chart.addSeries("Series A", [
      {y: 4, color: "red"},
      {y: 2, color: "green"},
      {y: 1, color: "blue"},
      {y: 1, text: "Other", **color: "white", fontColor: "red"**}
  ]);
  </code></pre>
  
  <p>But it only works for PIE-charts and not for LINES-charts.</p>
  
  <p>Thank you in advance.</p>