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 164833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:48:51+00:00 2026-05-11T11:48:51+00:00

I have a web HTML page with some client-side JS codes based on dojox.charting.

  • 0

I have a web HTML page with some client-side JS codes based on dojox.charting. I don’t have dojo library in my local web site (actually no web server). I use dojos’ xDomain reference feature with src to google’s hosting site like this:

<head> ... <script type='text/javascript'     djConfig1='isDebug:true'             src='http://ajax.googleapis.com/ajax/libs/dojo/1.2.0/dojo/dojo.xd.js'> </script> <script type='text/javascript'   dojo.require('dojox.gfx');     dojo.require('dojox.gfx.move');     dojo.require('dojo.html');      dojo.require('dojox.charting.Chart2D');     dojo.require('dojox.charting.themes.PlotKit.green');      dojo.require('dojox.charting.action2d.Highlight');     dojo.require('dojox.charting.action2d.Magnify');     dojo.require('dojox.charting.action2d.MoveSlice');     dojo.require('dojox.charting.action2d.Shake');     dojo.require('dojox.charting.action2d.Tooltip');     dojo.require('dojox.charting.themes.MiamiNice');      dojo.require('dojox.charting.widget.Legend'); </script> .... </head> 

Here is the function to create curve chart, based on the codes in Dojo: Now With Drawing Tools.

function drawCurve(nodeChart, nodeLegend) {   var chart1 = new dc.Chart2D(nodeChart)     .setTheme(dc.themes.PlotKit.green)     .addPlot('default', {       type: 'Default',       lines: true,       markers: true,       tension: 2     })    .addAxis('x', {       min: 0,       max: 6,       majorTick: { stroke: 'black', length: 3 },       minorTick: { stroke: 'gray', length: 3 }     })     .addAxis('y', {       vertical: true,       min: 0,       max: 10,       fixLower: 'major',        fixUpper: 'major',       majorTick: { stroke: 'black', length: 3 },       minorTick: { stroke: 'gray', length: 3 }     })     .addSeries('Series A', [       { x: 0.5, y: 5 },       { x: 1.5, y: 1.5 },       { x: 2, y: 9 },       { x: 5, y: 0.3 }     ])    .addSeries('Series B', [       { x: 0.3, y: 8 },       { x: 4, y: 6, tooltip: 'Custom tooltip'},       { x: 5.5, y: 2 }     ]);   var series = chart1.series;    var anim_a = new dc.action2d.Tooltip(chart1, 'default');   var anim_c = new dc.action2d.Magnify(chart1, 'default'); // not working   chart1.render();    var legendChart = new dc.widget.Legend(     {chart: chart1, horizontal: false}, nodeLegend.id); } 

My first question is that for the curve chart, the numbers along the y axis only displays 0 and 10. All the middle numbers 1 to 9 are not displayed. The values for x axis from 1 to 6 are visible. The original chart snapshot in the article does show y axis values as well, but the one on DojoToolKit Demos does show values along y axis. I am not sure what I missed in my codes. How can I enable displaying y axis values?

The next question is about the Magnify(). The DojoToolKit demo site’s curve chart works fine but my chart’s magnify feature does not work. I think this may be caused by xDomain reference. I may need to specify some specified js file from xDomain’s dojox library. I am not sure which one I have to specify.

One thing I noticed is that my FireBug displays following errors after curve chart is drawn:

_4.fx.combine is not a function http://ajax.googleapis.com/ajax/libs/dojo/1.2.0/dojox/charting/action2d/Magnify.xd.js Line 8 _11.action is undefined http://ajax.googleapis.com/ajax/libs/dojo/1.2.0/dojox/charting/action2d/Magnify.xd.js Line 8 

I think those undefined errors may indicate I miss loading some dojox library files in my head section.

By the way, I dont’ have a web server and I prefer to use dojo’s xDomain reference option. In this way, I can edit a html file in any place and send it to other people. No need to download and install dojo source library.

  • 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. 2026-05-11T11:48:51+00:00Added an answer on May 11, 2026 at 11:48 am

    Regarding the y axis values, I also find out easy way to display them (0 to 9):

    .addAxis('y', {   vertical: true,   //min: 0   //max: 10 .... 

    You can also comment out min only and leave max with 10 (0, 1, … to 10). See DojoCampus.org for more detail information about axis settings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 118k
  • Answers 118k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If the REST server and the scheduled jobs have nothing… May 11, 2026 at 11:35 pm
  • Editorial Team
    Editorial Team added an answer Take a look at the ConfigurationManager class I don't remember… May 11, 2026 at 11:35 pm
  • Editorial Team
    Editorial Team added an answer There are many reported problems with the OnBlur event firing,… May 11, 2026 at 11:35 pm

Related Questions

I have been getting more and more sick of all the quirks about control
Problem: Customer X has requested that pages using XML DataBinding and Databound tables in
I have a relatively simple site that I'm working up for an intranet environment.
I have a script that I'd like to continue using, but it looks like

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.