vb.net - Custom colors on bar chart using Zedgraph library -


I am using chart library but I think it is not able to paint bar graph on a specific situation so may. I am following with examples found on.

In my case, if value is not above 50 - which is the student.pass_mark variable - I want the bar red and if On top of this, I want to give it a green color below which is my code which till now only gives me, yet I have the value of 100, 80, 110 etc.

  dim subject As String Dim color grade as decimal color () = {} dim Visy_nam As String () = {} protected student.no_of_subjects Redim colors of I = 0 in (i) to protect the Redeem Visy_namon (i) subject = student. subject_name grade = student.grade dim x as Double = Seedibiel (i) + 1 dim y as Double = grade dim Z Double = 0 list. Add (X, Y, Z) grade & lt; Student.pass_mark followed by color (i) = color. Color other color (i) = color. Green Completion Topic_Name (i) = Subject Next Dim MyCurve Like Bar Iitem = myPane.AddBar ("Student Subject", List, Color.blue) 'Colored Colors () = {Colors} Color, color. Color, color Green, Color. Blue, color Parlor) myCurve.Bar.Fill = fill new (color) myCurve.Bar.Fill.Type = FillType Solid myCurve.Bar.Fill.RangeMin = 0 myCurve.Bar.Fill.RangeMax = 4 myPane.Chart.Fill = new Fill (color. White, Rngkform Aarbibi (220, 220, 255), 45) myPane.Fill = Fill New (Color White, Color. FormABRB (255, 255, 225), 45) 'XDis label set myPane.XAxis.Scale.TextLabels = Sub_names' to XXx to tell Zedrigra to calculate the range of axis set text type myPane to XAxis.Type = ZedGraph.AxisType.Text ZedChart.IsShowPointValues ​​= True ZedChart.AxisChange () ZedChart.Refresh ()   

Moreover, I whole chart I want to draw a line that shows That pass_mark is so fast that it is quickly visible that a student has crossed a certain subject or not

I do not know that it is still relative, but you can find the tutorial for the colorful bar in the multi-zegraph here:

In your case you can use the filipes You can. Gradient Bore Calver Value I Believe For line you can simply add a lineObj to myPane.GraphObjList

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -