Opened 6 years ago

Closed 4 years ago

#17552 closed enhancement (patchwelcome)

Chart HTML labels should be styleable with CSS

Reported by: paulrutter Owned by:
Priority: undecided Milestone: 1.13
Component: Charting Version: 1.9.1
Keywords: Cc:
Blocked By: Blocking:

Description

When having HTML labels on an axis of a Chart, these should be styleable with CSS.

At the moment, a label is rendered as follows:

My label

It would help a lot if a Chart developer can specify a "cssClass" for a specific Axis.

      chart.addAxis("y", {
        vertical: true,
        htmlLabels: false,
        cssClass: "myClass"
      });

This cssClass would then be added to the label, like this:

My label

Having this CSS class in place would enable a developer to style the HTML label from CSS, as well as (re)-position the labels. For example, add a "margin-left:-50px" so the labels are shown in the chart instead of next to it.

Change History (1)

comment:1 Changed 4 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in the past 2+ years, I'm closing this as patchwelcome. Please let us know if you would like to get involved in helping make this change to Dojo!

Note: See TracTickets for help on using tickets.