Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Dommer,</p> <p>I'm only one step ahead of you here, but you can create custom colors using the "themePath" property in the Chart's constructor. It's not well documented, but the themePath is a path to an XML document that describes the chart in detail. You can get samples of the XML by doing intellisense on the string consts in the Theme (which is an optional third parameter in Chart's constructor).</p> <p>You can find a reference to themePath values and sample XML at the following link: <a href="http://www.mikepope.com/blog/documents/WebHelpersAPI.html#Chart" rel="noreferrer">http://www.mikepope.com/blog/documents/WebHelpersAPI.html#Chart</a></p> <p>Now to custom colors. The XML in the theme files shows a Palette attribute in the Chart element. Set that to 'None', and add a 'PaletteCustomColors' attribute with a collection of RGB values like so:</p> <p>PaletteCustomColors='0,0,255; 0,255,0; 255,0,0; 0,255,255; 255,0,255; 255,255,0'</p> <p>Refer to your themePath in the contsructor like so:</p> <pre><code>string pathName = "~/Content/Test3DTheme.xml"; var chart = new Chart(width: 600, height: 400, themePath: pathName) [add methods here] </code></pre> <p>This should do it. As an aside, it appears that the theming protocol uses a lot of attributes that are properties in the System.Web.UI.DataVisualization.Chart. You can experiment (as I'm currently doing) by tweaking and adding/removing attributes to see what will change the look of your chart and what will break it. The parser is very persnickety about the attributes it accepts.</p> <p>Hope this helps.</p> <p>Jim Stanley</p> <p>Blackboard Connect Inc.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload