Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#13219 closed enhancement (fixed)

[patch][ccla] Add the ability to style the charting grid differently from the axis ticks

Reported by: cjolif Owned by: Eugene Lazutkin
Priority: high Milestone: 1.8
Component: Charting Version: 1.7.0b1
Keywords: Cc: ccmitchellusa@…, cjolif@…
Blocked By: Blocking:

Description

For now the Grid is using the Theme major/minorTick strokes to be styled.

This is a limitation because you might want totally different colors.

This patch is introducing a grid element on the Theme with major and minorLine strokes.

It also introduce on the Grid itself the same properties for both horizontal & vertical lines.

I will also attached a bit later and update of the mobileCharting demo to leverage this.

The Grid now takes uses these to draw itself. The priority is on the Grid style, then the Theme grid style and fallback to the old major & minor tick style if other properties are not set.

By default for compatibility reasons the other properties are not set.

Attachments (2)

dojox.charting.plot2d.Grid.patch (7.3 KB) - added by cjolif 8 years ago.
patch
mobileCharting.grid.patch (458 bytes) - added by cjolif 8 years ago.
mobileCharting demo patch to leverage the feature

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by cjolif

patch

Changed 8 years ago by cjolif

Attachment: mobileCharting.grid.patch added

mobileCharting demo patch to leverage the feature

comment:1 Changed 8 years ago by cjolif

See a old enhancement request about that #11389

comment:2 Changed 8 years ago by cjolif

Resolution: fixed
Status: newclosed

In [27000]:

Implementing grid styling by theme (overridable in grid itself). Also optionally not draw grid over axis. Fixes #13219, #13258. !strict.

comment:3 Changed 8 years ago by cjolif

In [27001]:

Implementing grid styling by theme (overridable in grid itself). Also optionally not draw grid over axis. Fixes #13219, #13258. !strict.

comment:4 Changed 8 years ago by cjolif

In [27002]:

leverage new grid style in demo. Refs #13219.

Note: See TracTickets for help on using tickets.