Login Register

labels

Chart labels give JS errors in IE

I am using Dojo 1.1.0 trying to make a "Columns" chart. The chart works great in Firefox (2) but in IE 6 and 7 I get a JavaScript error and no chart. The error is:

'text' is null or not an object

I found out I can get the error to go away if I remove the chart labels. Below is the original code:


chart1.addAxis("Age", {labels: [{value: 1, text: "5-17"},
{value: 2, text: "18-21"},
{value: 3, text: "22-29"},
{value: 4, text: "30-39"},
{value: 5, text: "40-49"},
{value: 6, text: "50-64"},

Chart Axis Labels - Custom Formatting function?

Hi there, I'm somewhat new to Dojo and liking it. I have a need to create custom Axis Labels. I'm a aware that I can setup name/value pairs "1" = "one", etc. My y axis is a currency that could range from 0 to millions. Rather than define the points I would like to pass in my data (IE: 150000) and have the label call a formatting function to output ($150,000). The idea comes from the FLOT library under jQuery which I previously used.

Any help would be appreciated if there is a way to do it with the existing code. Otherwise it could be a consideration for upcoming releases.

Dijit Slider Labels not working in IE if in a div with any sort of background

Release: Dojo 1.1.1
Browser: IE 6 & IE 7
Scenario: Using a HorizontalSlider dijit in a div that has a background color set to #FFFFFF.
Problem: Labels do NOT show.

Confirmed that labels DO show so long as the widget is in a place that does not have a css background defined. Once the widget is within a div that has a background color or image, the labels vanish.

I've not confirmed whether this happens only in divs but I assume so.

Works perfectly either way in Firefox (2.0) and Safari. Just not in IE 6 or IE 7.

slider ticks and labels not visible in ie when background is set in parent container

I've seen some references to this behavior, but haven't seen much that addresses it directly, so thought I'd post my observations for consideration. Of course if anyone has a fix please let me know.

Labels on points, Axis Title

Hello,

I would like to ask further,

1. Is it possible to add labels in my chart points?
2. X/Y Axis Title, is it possible. Dojo 0.4 can do it, but seems no longer working for 1.0
3. Chart Title.

Thank you for the responses in my previous posts.

[solved] Programmatically adding rules and labels to a slider

Hi everybody!

I've already searched the forum and tests but couldn't find the answer... how do I prgrammatically add rules and labels to a slider?

Here is the code fragment I've got so far:

Untitled Document

[solved] How create slider rules and labels (1.0) programatically?

How create slider rules and labels programatically? No have examples in the documentation.

I tried this, but slider rules not work:

############################################

function openSlider(){

//Vertical Slider
var node = dojo.body().appendChild(document.createElement("div"));
node.id = 's1';
test = new dijit.form.VerticalSlider({
value:30000,
minimum:1000,
maximum:30000,
discreteValues:10,
intermediateChanges:"true",
//showTooltip: "true", //=> This works for slider 1.0?

Syndicate content