[CLOSED] Format Line chart Tips Renderer

  1. #1

    [CLOSED] Format Line chart Tips Renderer

    Hi,

    Currently my line chart series shows tool tips as:

    "Albania,3.440002322"

    How do i round of 3 digit i.e. 3.440

    I tried

    Renderer(r => r.Handler = "this.setTitle('" + row + " +  storeItem.get(Ext.util.Format.number('" + row + "','0.000')));")
    But it doesn't seems to be working .I gives me "undefined".

    What am i doing wrong

    Please let me know.Thanks
    Last edited by Daniil; Sep 24, 2013 at 5:34 AM. Reason: [CLOSED]
  2. #2
    Hi @PriceRightHTML5team,

    Please clarify what is the "row" in the code snippet?

    If you provide a working test case
    "Albania,3.440002322"
    then, I think, it will take a bit for us to modify it truncating the real part.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @PriceRightHTML5team,

    Please clarify what is the "row" in the code snippet?

    If you provide a working test case
    "Albania,3.440002322"
    then, I think, it will take a bit for us to modify it truncating the real part.
    row is the country "Albania" and
    storeItem.get('" + row + "') give us value 3.440003233.

    Please let me know if this information is sufficient or do you need more inputs from our side.
  4. #4
    Please try:
    r.Handler = "this.setTitle('" + row + ", ' + Ext.util.Format.number(storeItem.get('" + row + "'),'0.000'));"
  5. #5
    Quote Originally Posted by Daniil View Post
    Please try:
    r.Handler = "this.setTitle('" + row + ", ' + Ext.util.Format.number(storeItem.get('" + row + "'),'0.000'));"
    thanks it worked

Similar Threads

  1. [CLOSED] Renderer on Tips of Series of Chart in code behind
    By reinout.mechant@imprss.be in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 21, 2013, 3:29 PM
  2. [CLOSED] Disable Line Series Tips
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 19, 2013, 4:12 PM
  3. [CLOSED] when gridpanel column apply renderer.format , renderer.fn not work
    By mis@adphk.com in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 12, 2013, 10:35 AM
  4. [CLOSED] Chart: Tips Styling
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 14, 2012, 4:13 PM
  5. [RAZOR] How to add tips to chart
    By Natalie in forum 2.x Help
    Replies: 0
    Last Post: May 15, 2012, 3:20 PM

Tags for this Thread

Posting Permissions