How to Set Chart Series Colors in MVC 3?

后端 未结 5 1294
抹茶落季
抹茶落季 2020-12-31 10:32

I\'m using

System.Web.Helpers.Chart

to display charts in my MVC3 application.

@{
    var myChart = new Chart(w         


        
5条回答
  •  一整个雨季
    2020-12-31 10:56

    I've been struggling with this as well and after reading the Microsoft documentation posted by Danny I finally found that the PaletteCustomColor attribute is the way to go. Here is an example of a theme with custom palette:

    const string blue = @"
      
           
      
      
           
      
       
    ";
    

提交回复
热议问题