Problem With Heat Map Chart

Recommended Posts



I'm trying to use the heat map swf on my site. However it keeps telling me the XML is invalid. Not sure what is wrong. I took the syntax directly off the demo and just added my own code. Hope someone can tell me what is wrong. Thanks in advance below is the code i am outputting prior to rendering the chart.

<chart Caption='Odd/Even Distribution' baseFont='Tahoma' baseFontSize='14' xAxisName='Drawing Dates' yAxisName='ODD or EVEN' decimalPrecision='0' formatNumberScale='0' outCnvBaseFontSize='14'  showValues='1'>
<row id='2011-12-02' />
<row id='2011-12-01' />
<row id='2011-11-30' />
<row id='2011-11-29' />
<row id='2011-11-28' />
<row id='2011-11-27' />
<row id='2011-11-26' />
<row id='2011-11-25' />
<row id='2011-11-24' />
<row id='2011-11-23' />
<column id='1' />
<column id='2' />
<column id='3' />
<set rowId='2011-12-02' columnId='1' value='1' displayValue='Odd'/>
<set rowId='2011-12-02' columnId='2' value='4' displayValue='Even'/>
<set rowId='2011-12-02' columnId='3' value='1' displayValue='Odd'/>
<set rowId='2011-12-01' columnId='1' value='1' displayValue='Odd'/>
<set rowId='2011-12-01' columnId='2' value='4' displayValue='Even'/>
<set rowId='2011-12-01' columnId='3' value='1' displayValue='Odd'/>
<set rowId='2011-11-30' columnId='1' value='4' displayValue='Even'/>
<set rowId='2011-11-30' columnId='2' value='4' displayValue='Even'/>
<set rowId='2011-11-30' columnId='3' value='1' displayValue='Odd'/>
<set rowId='2011-11-29' columnId='1' value='1' displayValue='Odd'/>
<set rowId='2011-11-29' columnId='2' value='4' displayValue='Even'/>
<set rowId='2011-11-29' columnId='3' value='1' displayValue='Odd'/>
<set rowId='2011-11-28' columnId='1' value='4' displayValue='Even'/>
<set rowId='2011-11-28' columnId='2' value='1' displayValue='Odd'/>
<set rowId='2011-11-28' columnId='3' value='4' displayValue='Even'/>
<set rowId='2011-11-27' columnId='1' value='4' displayValue='Even'/>
<set rowId='2011-11-27' columnId='2' value='4' displayValue='Even'/>
<set rowId='2011-11-27' columnId='3' value='1' displayValue='Odd'/>
<set rowId='2011-11-26' columnId='1' value='4' displayValue='Even'/>
<set rowId='2011-11-26' columnId='2' value='1' displayValue='Odd'/>
<set rowId='2011-11-26' columnId='3' value='4' displayValue='Even'/>
<set rowId='2011-11-25' columnId='1' value='4' displayValue='Even'/>
<set rowId='2011-11-25' columnId='2' value='1' displayValue='Odd'/>
<set rowId='2011-11-25' columnId='3' value='1' displayValue='Odd'/>
<set rowId='2011-11-24' columnId='1' value='1' displayValue='Odd'/>
<set rowId='2011-11-24' columnId='2' value='1' displayValue='Odd'/>
<set rowId='2011-11-24' columnId='3' value='4' displayValue='Even'/>
<set rowId='2011-11-23' columnId='1' value='1' displayValue='Odd'/>
<set rowId='2011-11-23' columnId='2' value='1' displayValue='Odd'/>
<set rowId='2011-11-23' columnId='3' value='4' displayValue='Even'/>
<colorRange gradient='0' code='F1C4EE' minValue='0' startlabel='ODD' endLabel='EVEN'>
<color code='AFD8F8' minValue='0' maxValue='1' label='ODD'>
<color code='8BBA00' minValue='3' maxValue='4' label='EVEN'>

Share this post

Link to post
Share on other sites



"Invalid Data" error occurs, since the XML code for <color> element does not have corresponding end tag.

Could you please try once closing the color tag element?



<color code='AFD8F8' minValue='0' maxValue='1' label='ODD' />

<color code='8BBA00' minValue='3' maxValue='4' label='EVEN' />

I hope this helps :)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now