can any one show me I might be able to use custom colours in an ASP.Net chart control. so for example I have two series TOTAL and TARGET and I want to set the colour for total to green and the colour for target to be red .
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Carriage Return (ASCII chr 13) is missing from tex
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
I don't know if this will help, but I created a Custom Control that exposes several parameters that you can adjust, such as chart type, color, wall width, etc.
http://www.foliotek.com/devblog/asp-net-4-0-custom-chart-control-adjustable/
The
System.Web.UI.DataVisualization.Charting.Series
object has aColor
property. Simply set the color property to what you need it to be. Here follows a code sample that adds a horizontal line of a given value to a chart:This code sample makes adjustments to some other properties you will likely find useful as well.
Something like this:
iv done something like
suppose that you have two points for your Series1. So you can customise the colors as follow: