Jump to content


Angular Chart Trend point label wrong position


  • Please log in to reply
3 replies to this topic

#1 Alexey A

Alexey A

    Forum Newbie

  • Members
  • 8 posts

Posted 31 January 2017 - 12:28 PM

Hi

I have a problem with angular chart:

If lower limit value is not a zero then position of trend point label is wrong.

I have prepared test case:

 http://jsfiddle.net/AlexeyAl/m1qd99tk/

 

And one more question: How can I reduce chart margins? As you can see in test case - they are very redundant.

 

Best regards,

Alexey

 



#2 Prerana

Prerana

    Advanced Member

  • Members
  • PipPipPipPip
  • 90 posts

Posted 02 February 2017 - 04:33 AM

Hello,
 
Thanks for the query.
 
For your 1st problem i.e. If lower limit value is not a zero then position of trend point label is wrong.
 
Sol - This issue has been already logged internally, will keep you posted.
 
For the query i.e.  How can I reduce chart margins?
 
Sol - There are attributes to set chart margin, please go through our docs for the details -  http://www.fusioncha...hartRightMargin
 
and kindly refer the fiddle given below for the implementation.
 
Hope this will help,

Thanks,

Prerana Singh


#3 Alexey A

Alexey A

    Forum Newbie

  • Members
  • 8 posts

Posted 02 February 2017 - 12:28 PM

Hello Prerana,
 
thank you for yours response.
I know about margins attributes but I don't understand why there is huge amount of empty space when margins are zero.
If you look into the example: http://jsfiddle.net/AlexeyAl/uc249u4v/
then you will see that there are empty areas: Top - 20 px, Left 30 px, right - 37 px.
 
The reason of my question is that in version 3.11.1 chart calculation algorithm was changed.
The difference of rendering the same chart definition you can see in attached images.
 
Please let me know if I have some workaround to restore 3.10.1 behavior.

Attached Thumbnails

  • chart_v_3_10_1.png
  • chart_v_3_11_1.png


#4 Prerana

Prerana

    Advanced Member

  • Members
  • PipPipPipPip
  • 90 posts

Posted 03 February 2017 - 10:39 AM

Hello,
 
Thanks for replying back.
 
Its a bug, we have logged it internally, and will keep you posted regarding the same
 
For a workaround you can set the value of the chart margin attribute as negative.
e.g. "chartLeftMargin":"-20"
 
Kindly refer the fiddle below for the implementation.
 
Hope this will help,

Thanks,

Prerana Singh