Got the solution, as i have custom legend I have to set the data provider legend after updating the line chart:
// Add listener event to the linechart component for when the legend update completes so it can filter lineseries on the legend's dataprovider in [onUpdateLegendComplete]
myChart.addEventListener(FlexEvent.UPDATE_COMPLETE, onUpdateLinechartComplete);
And the function is:
protected function onUpdateLinechartComplete(e:FlexEvent):void
{
legend.dataProvider = myChart.legendData[0];
}