Click here to Skip to main content
15,922,419 members
Home / Discussions / C#
   

C#

 
GeneralRe: VS2010 chart Control Pin
kibromg6-Oct-10 5:26
kibromg6-Oct-10 5:26 
GeneralRe: VS2010 chart Control Pin
Rutvik Dave6-Oct-10 6:03
professionalRutvik Dave6-Oct-10 6:03 
GeneralRe: VS2010 chart Control [modified] Pin
kibromg6-Oct-10 6:17
kibromg6-Oct-10 6:17 
GeneralRe: VS2010 chart Control Pin
Rutvik Dave6-Oct-10 7:59
professionalRutvik Dave6-Oct-10 7:59 
GeneralRe: VS2010 chart Control Pin
kibromg7-Oct-10 3:12
kibromg7-Oct-10 3:12 
GeneralRe: VS2010 chart Control Pin
Rutvik Dave7-Oct-10 4:33
professionalRutvik Dave7-Oct-10 4:33 
GeneralRe: VS2010 chart Control [modified] Pin
kibromg7-Oct-10 6:21
kibromg7-Oct-10 6:21 
GeneralRe: VS2010 chart Control Pin
Rutvik Dave7-Oct-10 8:01
professionalRutvik Dave7-Oct-10 8:01 
It is correct if you select Bar Chart, I think, you want Column Chart.

Change
ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.Bar

//to 

ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.Column




kibromg wrote:
sorry i meant to ask changing the color of the barchart not the backcolor.


I though that,


<blockquote class="FQ"><div class="FQA">kibromg wrote:</div>                  Chart1.Series(0).Points.AddXY(myDataRow("Hour"), myDataRow("Hourly_target"))
                  Chart1.Series(1).Points.AddXY(myDataRow("Hour"), myDataRow("Acheived"))
                  Chart1.Series(1).Points(Chart1.Series(1).Points.Count - 1).Label = myDataRow("hourly_targetPer").ToString + "%"</blockquote>


here

add

Chart1.Series(1).Points(Chart1.Series(1).Points.Count - 1).Color = System.Drawing.Color.Red


I think, you want to change the color based on progress, yeah you can do that...just add some IFs...
GeneralRe: VS2010 chart Control Pin
kibromg12-Oct-10 6:32
kibromg12-Oct-10 6:32 
GeneralRe: VS2010 chart Control Pin
Rutvik Dave13-Oct-10 9:08
professionalRutvik Dave13-Oct-10 9:08 
Questioncalling vs2005 tool from out side Pin
prasadbuddhika5-Oct-10 23:26
prasadbuddhika5-Oct-10 23:26 
AnswerAttempt to bump post - please don't reply on this thread, reply to the original thread instead. Pin
Pete O'Hanlon5-Oct-10 23:45
mvePete O'Hanlon5-Oct-10 23:45 
QuestionExcel upload Pin
Ramkithepower5-Oct-10 22:39
Ramkithepower5-Oct-10 22:39 
Question.net 2.0 Custom Configuration Sections Pin
AndieDu5-Oct-10 20:51
AndieDu5-Oct-10 20:51 
AnswerRe: .net 2.0 Custom Configuration Sections Pin
Keith Barrow6-Oct-10 10:24
professionalKeith Barrow6-Oct-10 10:24 
GeneralRe: .net 2.0 Custom Configuration Sections Pin
AndieDu6-Oct-10 13:36
AndieDu6-Oct-10 13:36 
GeneralRe: .net 2.0 Custom Configuration Sections Pin
Keith Barrow6-Oct-10 21:11
professionalKeith Barrow6-Oct-10 21:11 
Questionmerging two word file [modified] Pin
annie_bel5-Oct-10 18:44
annie_bel5-Oct-10 18:44 
AnswerRe: merging two word file Pin
rah_sin5-Oct-10 19:22
professionalrah_sin5-Oct-10 19:22 
GeneralRe: merging two word file Pin
Thomas Krojer5-Oct-10 20:56
Thomas Krojer5-Oct-10 20:56 
GeneralRe: merging two word file Pin
Dave Kreskowiak6-Oct-10 2:32
mveDave Kreskowiak6-Oct-10 2:32 
AnswerRe: merging two word file Pin
Blue_Boy5-Oct-10 21:30
Blue_Boy5-Oct-10 21:30 
GeneralRe: merging two word file Pin
Luc Pattyn6-Oct-10 4:50
sitebuilderLuc Pattyn6-Oct-10 4:50 
AnswerRe: merging two word file Pin
Pete O'Hanlon5-Oct-10 23:09
mvePete O'Hanlon5-Oct-10 23:09 
QuestionDatatable.BeginInit and EndInit Pin
abcurl5-Oct-10 18:17
abcurl5-Oct-10 18:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.