FusionCharts Forum: Coordinates wrong and - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Coordinates wrong and

#1 User is offline   kaiwachter 

  • Forum Member
  • PipPipPipPip
  • Group: Members
  • Posts: 27
  • Joined: 17-April 07

Posted 11 January 2008 - 02:48 AM

Hi ,

i have a problem with x coords:

<script type="text/javascript">
var chart1 = new FusionCharts("/sap/bw/mime/customer/ibs/charting/DragNode.swf", "DRAGWEBITEM_1", "995", "400 ", "0", "0");
chart1.setDataXML("

<chart palette='2'  is3D='1' showFormBtn='0' enableLink='1' viewMode='0'>
<dataset>
<set x='265' y='380' width='60' height='30' name='2006' link='/sap/bw/BEx?SAP-LANGUAGE%3dE%26PAGENO%3d1%26%26ITEM%3dWEBITEM_1%26PCMD%3dSWITCH_TIME_VAL%26TIME%3d2006' shape='rectangle' id='2006' color=''/>
<set x='200' y='380' width='60' height='30' name='2005' link='/sap/bw/BEx?SAP-LANGUAGE%3dE%26PAGENO%3d1%26%26ITEM%3dWEBITEM_1%26PCMD%3dSWITCH_TIME_VAL%26TIME%3d2005' shape='rectangle' id='2005' color=''/>
<set x='135' y='380' width='60' height='30' name='2004' link='/sap/bw/BEx?SAP-LANGUAGE%3dE%26PAGENO%3d1%26%26ITEM%3dWEBITEM_1%26PCMD%3dSWITCH_TIME_VAL%26TIME%3d2004' shape='rectangle' id='2004' color=''/>
<set x='70' y='380' width='60' height='30' name='2003' link='/sap/bw/BEx?SAP-LANGUAGE%3dE%26PAGENO%3d1%26%26ITEM%3dWEBITEM_1%26PCMD%3dSWITCH_TIME_VAL%26TIME%3d2003' shape='rectangle' id='2003' color=''/>
<set x='478' y='297' radius='40' height='65' name='Overall' link='' shape='polygon' id='8970ec7d337348b3880881eca6df9771' color='F87C7C'/>
<set x='623' y='212' radius='40' height='65' name='erste perspektive' link='' shape='polygon' id='4381fb01f7f44b8e866d6fb89e5a91c1' color='FFBBBB'/>
<set x='312' y='212' radius='40' height='65' name='Zweite Perspektive' link='' shape='polygon' id='01bc265a18c74a088f65e7377a935fa7' color='FF3333'/>
<set x='686' y='127' radius='30' height='65' name='Thilo Test' link='/sap/bw/BEx?SAP-LANGUAGE%3dE%26PAGENO%3d1%26%26ITEM%3dWEBITEM_1%26PCMD%3dSHOW_KPI%26KPI_ID%3db1d2d51939424b37bd9263b5f3cd19c0' shape='circle' id='b1d2d51939424b37bd9263b5f3cd19c0' color='FFBBBB'/>
<set x='458' y='127' width='40' height='65' name='mein Folder' link='' shape='rectangle' id='2c0f47d22c62410c83c558f5887abbe3' color='FFBBBB'/>
<set x='229' y='127' width='40' height='65' name='Test Folder in neuer Pers' link='' shape='rectangle' id='ab9793539db24d9a8e4d07599f6e4039' color='FF3333'/>
<set x='623' y='42' radius='30' height='65' name='mein Test' link='/sap/bw/BEx?SAP-LANGUAGE%3dE%26PAGENO%3d1%26%26ITEM%3dWEBITEM_1%26PCMD%3dSHOW_KPI%26KPI_ID%3d1073f6af475f49c2bb98510a0a2775e7' shape='circle' id='1073f6af475f49c2bb98510a0a2775e7' color='FFBBBB'/>
<set x='312' y='42' radius='30' height='65' name='dadfasfadf' link='/sap/bw/BEx?SAP-LANGUAGE%3dE%26PAGENO%3d1%26%26ITEM%3dWEBITEM_1%26PCMD%3dSHOW_KPI%26KPI_ID%3d78b673c026474f66b4a91a542549d723' shape='circle' id='78b673c026474f66b4a91a542549d723' color='FF3333'/>
</dataset>
<connectors>
<connector from='8970ec7d337348b3880881eca6df9771' to='01bc265a18c74a088f65e7377a935fa7' color='' arrowAtStart='0' arrowAtEnd='1'/>
<connector from='01bc265a18c74a088f65e7377a935fa7' to='ab9793539db24d9a8e4d07599f6e4039' color='' arrowAtStart='0' arrowAtEnd='1'/>
<connector from='ab9793539db24d9a8e4d07599f6e4039' to='78b673c026474f66b4a91a542549d723' color='' arrowAtStart='0' arrowAtEnd='1'/>
<connector from='8970ec7d337348b3880881eca6df9771' to='4381fb01f7f44b8e866d6fb89e5a91c1' color='' arrowAtStart='0' arrowAtEnd='1'/>
<connector from='4381fb01f7f44b8e866d6fb89e5a91c1' to='2c0f47d22c62410c83c558f5887abbe3' color='' arrowAtStart='0' arrowAtEnd='1'/>
<connector from='2c0f47d22c62410c83c558f5887abbe3' to='1073f6af475f49c2bb98510a0a2775e7' color='' arrowAtStart='0' arrowAtEnd='1'/>
<connector from='4381fb01f7f44b8e866d6fb89e5a91c1' to='b1d2d51939424b37bd9263b5f3cd19c0' color='' arrowAtStart='0' arrowAtEnd='1'/>
</connectors></chart>

");chart1.render("divDRAGWEBITEM_1");
</script>

All the nodes change the xCoords.

<set x='478' y='297' radius='40' height='65' name='Overall' link='' shape='polygon' id='8970ec7d337348b3880881eca6df9771' color='F87C7C'/>

the chart is 995px wide i set the x coord to 478px. so i would expect that it looks more or less in the mid of the chart. but when executing it is on the right side. If i measure with ruler i can see that is rendered on approx 660px. Y coords are correct.

Can you help me to find the root cause?

best regards

Kai

0

Other Replies To This Topic

#2 User is offline   Pallav 

  • FusionCharts Team
  • Group: Administrators
  • Posts: 2386
  • Joined: 08-December 06

Posted 16 January 2008 - 07:14 AM

Hi,



The x values are not pixel values - instead they're numeric x values based on a numeric x scale.
Thanks,
Pallav Nadhani
Co-founder & CEO, FusionCharts Team
0

Other Replies To This Topic

#3 User is offline   kaiwachter 

  • Forum Member
  • PipPipPipPip
  • Group: Members
  • Posts: 27
  • Joined: 17-April 07

Posted 16 January 2008 - 07:17 AM

does this mean if i set the numeric scale to the width of the charts, my x values will represent pixels?

best regards,

Kai

0

Other Replies To This Topic

#4 User is offline   tinysnowman 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 10-September 10

Posted 10 September 2010 - 09:56 AM

I have the same problem with x positions of the dragnode chart...

Did you find a solution to this??



Thanks,
0

Other Replies To This Topic

#5 User is offline   tinysnowman 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 10-September 10

Posted 10 September 2010 - 10:21 AM

I solved this problem by added the follow attribute to the chart element:

xAxisMaxValue='$width'

Where $width is the width of the chart in pixels.
0

Other Replies To This Topic

#6 User is offline   Sanjukta 

  • Supreme Being
  • Group: Administrators
  • Posts: 1664
  • Joined: 15-March 10

Posted 11 September 2010 - 01:56 AM

Hey,

Glad that your issue is resolved.

Thanks for sharing.

Happy FusionCharting! :)

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Thanks,
Sanjukta

Follow us @Twitter!
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic