Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I change the legend symbol on a webchart?
    primarykey
    data
    text
    <p>I'm using Carlos Aguilera's <a href="http://www.carlosag.net/tools/webchart/" rel="nofollow noreferrer">WebChart</a> control and would like to change the legend markers to match the line markers that I am using on the line. I've got the following chart:</p> <p><img src="https://i.stack.imgur.com/PBJze.gif" alt="image generated from webchart"></p> <p>Here is my code for the legend: </p> <pre><code> objLegend = New WebChart.ChartLegend objLegend.Font = New Font("Verdana", 8) objLegend.Width = 150 objLegend.Position = LegendPosition.Right objLegend.Background.Color = Color.LightYellow objLegend.Background.Type = InteriorType.Solid objLegend.Background.WrapMode = Drawing2D.WrapMode.Tile objEngine.Legend = objLegend </code></pre> <p>And the code for setting up the Line Markers</p> <pre><code> Select Case intColorIndex Mod 5 Case 0 objLineChart.LineMarker = New CircleLineMarker(6, Color.Red, Color.Black) Case 1 objLineChart.LineMarker = New DiamondLineMarker(6, Color.Red, Color.Black) Case 2 objLineChart.LineMarker = New SquareLineMarker(6, Color.Red, Color.Black) Case 3 objLineChart.LineMarker = New TriangleLineMarker(6, Color.Red, Color.Black) Case 4 objLineChart.LineMarker = New XLineMarker(6, Color.Red, Color.Black) End Select </code></pre> <p>Neither of these places seem to have a property to set the Legend marker type, and there does not seem to be an option in the <code>ChartEngine</code> object either.</p> <p>The Legend text is set per line, but the only accessible property from <code>LineChart</code> is the text, there does not seem to be an option for a symbol.</p> <p>Is it possible to change the legend marker using this control? If so how do I do so?</p>
    singulars
    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.
 

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