Next
Update
Prev

The user-defined legend can be created using the <SubLegend> element tag. Creating the chart legend using the <SubLegend> element tag provides a more flexible way than that of using the <Legend> element tag. This sample chart demonstrates how to create the user-defined legend.

...
<SubLegend direction="horizontal" ... >
  <LegendItem  ... label=""Less than 30" >
    <fill>
      <SolidColor color="#BFE4FF" />
    </fill>
  </LegendItem >
  <LegendItem  ... label=""Less than 50" >
    <fill>
      <SolidColor color="#B6C5FF" />
    </fill>
  </LegendItem >
  <LegendItem  ... label=""Less than 90" >
    <fill>
      <SolidColor color="#90B2FF" />
    </fill>
  </LegendItem >
  <LegendItem  ... label=""More than 90" >
    <fill>
      <SolidColor color="#5589F2" />
    </fill>
  </LegendItem >
</SubLegend>
...

© 2017 KoolChart. All rights reserved.