locked
Line chart visible in single page.html but when same page added in navigations, line chart is not visible

    Question

  • I have created a line chart using d3 in HTML.

    Line chart gets visible in single page.html but when same page added in navigations, line chart is not visible.

    What could be the reason?

    Kindly let me what additional setting do I need to do?

    Please see the below link from where I got the code.

    Kindly reply asap.

    Tuesday, August 20, 2013 7:11 AM

Answers

  • For help with D3 you really need to work with its authors and experts.

    That said, if you can provide sample code demonstrating what you are doing somebody from the community here may be familiar enough with D3 to help you diagnose the problem.

    --Rob

    Wednesday, August 21, 2013 2:50 AM
    Moderator
  • Hi sandy,

    I think you forgot to post you link. If the link contains your project, it would be easier for us to find where the problem is.

    And I suggest you can set a breakpoint in the code that will create the line chart to see if the code has been executed or not. 

    Normally when you display a single page, the page will load the js for you automatically, but when you add same page in navigations, make sure that the js file is loaded correctly by the display page but not it's parent container page.

    Hope the suggestion will help you and best regards,

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Wednesday, August 21, 2013 3:12 AM
    Moderator

All replies

  • For help with D3 you really need to work with its authors and experts.

    That said, if you can provide sample code demonstrating what you are doing somebody from the community here may be familiar enough with D3 to help you diagnose the problem.

    --Rob

    Wednesday, August 21, 2013 2:50 AM
    Moderator
  • Hi sandy,

    I think you forgot to post you link. If the link contains your project, it would be easier for us to find where the problem is.

    And I suggest you can set a breakpoint in the code that will create the line chart to see if the code has been executed or not. 

    Normally when you display a single page, the page will load the js for you automatically, but when you add same page in navigations, make sure that the js file is loaded correctly by the display page but not it's parent container page.

    Hope the suggestion will help you and best regards,

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Wednesday, August 21, 2013 3:12 AM
    Moderator