Jump to content
Software FX Community

importChart method doesn't seem to do anything


dversch
 Share

Recommended Posts

I'm trying to use the importChart method on the Chart object as follows:

chart1.importChart("config.xml");

chart1.renderControl();

The chart always renders exactly the same, no matter what changes I make to config.xml.  (Yes, it sees the file.)  Any ideas anyone?

 

Thanks.

 

Link to comment
Share on other sites

Hi,

 Here is a sample of xml template that should do the job, so please try it and let us know.

<CFX7>   <PANES>   <ITEM index="0">   <AXES>   <ITEM index="0"></ITEM>   <ITEM index="1"></ITEM>   </AXES>   </ITEM>   </PANES>   <AXESX>   <ITEM index="0"></ITEM>   </AXESX>   <ALLSERIES>   <GALLERYARRAY type="ChartFX.WebForms.Internal.IGalleryType[]">   <ITEM index="0" type="ChartFX.WebForms.Galleries.Line"></ITEM>   </GALLERYARRAY>   </ALLSERIES>   <SERIES>   <ITEM index="0"></ITEM>   <ITEM index="1"></ITEM>   <ITEM index="2"></ITEM>   </SERIES>   <TITLES>   <ITEM>   <TEXT>Dave's Test XML Chart</TEXT>   </ITEM>   </TITLES>   <LEGENDBOX>   <DOCK>Left</DOCK>   </LEGENDBOX>   <DATAGRID>   <VISIBLE>True</VISIBLE>   </DATAGRID>   <BORDER assembly="ChartFX.WebForms.Adornments, Version=7.0.1500.0, Culture=neutral, PublicKeyToken=a1878e2052c08dce" type="ChartFX.WebForms.Adornments.ImageBorder"></BORDER>   <BACKGROUND assembly="ChartFX.WebForms.Adornments, Version=7.0.1500.0, Culture=neutral, PublicKeyToken=a1878e2052c08dce" type="ChartFX.WebForms.Adornments.GradientBackground">   <COLORS assembly="ChartFX.WebForms.Adornments, Version=7.0.1500.0, Culture=neutral, PublicKeyToken=a1878e2052c08dce" type="ChartFX.WebForms.Adornments.GradientBackground+ColorCollection"></COLORS>   </BACKGROUND>   <ID>4908</ID>   <RENDERFORMAT>Image</RENDERFORMAT></CFX7>

 Regards, RB

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...