V3: drawing trend lines

HTML

<script src="http://www.amcharts.com/lib/3/amcharts.js"></script>
<script src="http://www.amcharts.com/lib/3/serial.js"></script>
<script src="http://www.amcharts.com/lib/3/amstock.js"></script>
<div id="chartdiv" style="width: 100%; height: 395px;"></div>

CSS

body
{
    font-size:12px;
    color:#000000;
    background-color:#ffffff;
    font-family:verdana,helvetica,arial,sans-serif;
}

.amChartsButtonSelected
{
   background-color:#CC0000;
   border-style:solid;
   border-color:#CC0000;
   border-width:1px;
   color:#FFFFFF;
  -moz-border-radius: 5px;
  border-radius: 5px;
  margin: 1px;   
    padding:3px;
}

.amChartsButton
{
   background-color:#EEEEEE;
   border-style:solid;
   border-color:#CCCCCC;
   border-width:1px;
   color:#000000;
  -moz-border-radius: 5px;
  border-radius: 5px;
  margin: 1px;  
    padding:3px;
}

.amChartsCompareList
{
   border-style:solid;
   border-color:#CCCCCC;
   border-width:1px;
}

JavaScript

AmCharts.ready(function () {
    generateChartData();
    createStockChart();
});

var chartData = [];

function generateChartData() {
chartData.push({ date: new Date(2012, 2, 4), 1689: 0.62, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 2, 5), 1689: 0.8, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 2, 6), 1689: 0.79, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 2, 0), 1689: 0.78, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 2, 1), 1689: 0.65, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 2, 2), 1689: 0.76, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 2, 3), 1689: 0.54, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 2, 4), 1689: 0.8, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 2, 5), 1689: 0.59, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 2, 6), 1689: 0.8, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 3, 0), 1689: 0.67, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 3, 1), 1689: 0.78, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 3, 2), 1689: 0.78, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 3, 3), 1689: 0.62, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 3, 4), 1689: 0.97, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 3, 5), 1689: 1.26, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 3, 6), 1689: 0.67, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 3, 0), 1689: 1.19, 1877: 0, 8584: 0, 8585: 0, 10676: 0, });
chartData.push({ date: new Date(2012, 3, 1), 1689: 0.83, 1877: 0, 8584: 0, 8585: 0, 10676: 0,...