Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created successfully candlestick to my chart. After applying following
code for adding moving averages to my chart moving average lines appear correctly but my candlestick chart is not visible anymore on chart.

here is code :

C#
chart1.DataManipulator.IsStartFromFirst = true;
chart1.DataManipulator.FinancialFormula(FinancialFormula.MovingAverage, "40", "Default", "Simple");
chart1.Series["Simple"].ChartArea = "Default";
            chart1.Series["Simple"].ChartType = SeriesChartType.Line;
            chart1.Series["Simple"].BorderWidth = 1;
            chart1.Series["Simple"].ShadowOffset = 0;
            chart1.Series["Simple"].IsVisibleInLegend = false;


here "Default" is my series & have chart type as candlestick on form load.It's working fine & I am able to see candlestick to my charts.
Can any body please tell me why this candle sticks disappear after adding financial formula to this "Default" series?
Does it automatically hidden after adding financial formula?
Posted
Comments
BillWoodruff 30-Oct-11 3:40am    
What creates 'chart1' ? What type of object is it ? Third-party control: if so, from what company. It 'chart1' being produced by automating Office from C#. Is this a WinForm project or a Web project ?

1 solution

Check the property values of DataVisualization object. Ref at: http://msdn.microsoft.com/en-us/library/system.windows.forms.datavisualization.charting.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900