Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6636833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:14:09+00:00 2026-05-25T23:14:09+00:00

I am unable to add custom tooltip for type:’Lines’ charts, as I did for

  • 0

I am unable to add custom tooltip for type:'Lines' charts, as I did for clusturedbar and pie charts.
This is the code I am using..

    makeCharts = function(){

    var chart1 = new dojox.charting.Chart2D("simplechart");
    chart1.addPlot("default",{
                 type: 'Lines',
                 markers: true,
                 tension: 'S',
                 lines: true,
                 areas: false,
                 labelOffset: -30,
                 labels:true,
                 shadows: { dx:10, dy:12, dw:12 }
    });
    chart1.addAxis("x");
    chart1.addAxis("y", {vertical: true});
    chart1.addSeries("Series 1", [{y:1, tooltip:'bla bla'}, 
                                          {y:2, tooltip:'bla bla'}, 
                                          {y:2, tooltip:'bla bla'}, 
                                          {y:3, tooltip:'bla bla'}, 
                                          {y:4, tooltip:'bla bla'}, 
                                          {y:5, tooltip:'bla bla'}, 
                                          {y:5, tooltip:'bla bla'}, 
                                          {y:7, tooltip:'bla bla'}]
            );
    new dojox.charting.action2d.Magnify(chart1, 'default');
        new dojox.charting.action2d.Tooltip(chart1, 'default');
    chart1.render();
};

dojo.addOnLoad(makeCharts);

Note: if I am using the json notation in the add series ({y:1, tooltip:'blabla'}), even chart is not shown up. Chart is coming only when I give addseries('series 1', [1,2,2,3,4,5,5,6]);
Can anyone tell me what is the wrong in my code to get custom tooltip?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:14:09+00:00Added an answer on May 25, 2026 at 11:14 pm

    I was trying to do this for a Dojo line chart – had to change to an x,y chart as it seems lines only takes an array of numbers. This example helped me –
    http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/charting/tests/test_event2d.html

    An array of x: and y: and tooltip: works

    {x: 1, y: 2, tooltip: "hello"}, {...}
    

    If like me you want x to be a set of dates or other non numerical markers then just add ->

    chart1.addAxis("x", {
    labels: [
        {value: 0, text: "20110901"},
        {value: 1, text: "20110902"},
        {value: 2, text: "20110903"},
        ... etc
    ],
    rotation: 90})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am able to add custom tabs to my Facebook pages, by using the
I'm unable to add an mdf database file by right clicking on the project
Unable to cast object type System.Collections.Generic.List 1[NorthwindMVC3.Models.Product] to the type ofSystem.Collections.Generic.IEnumerator 1[NorthwindMVC3.Models.Product].\ public IEnumerator<Product>
I have found documentation on using custom icons for jQuery mobile buttons and how
I'd like to validate a form using the jquery validate plugin, but I'm unable
I have created an account type using the AccountAuthenticator stuff as done in the
How to add a custom tab to my Facebook page, without the use of
I have a working application using Json.NET (newtonsoft) as a custom serializer. Currently I'm
I cant add a custom button to my android application.When I run it in
So I have a module in flex in which I add a custom component.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.