-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from n3-charts/issue_177
Issue 177
- Loading branch information
Showing
100 changed files
with
788 additions
and
958 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
+ a hidden series should be considered as non-existent (doesn't impact axes, range or whatever) | ||
+ full redraw should happen when : | ||
- the options.series array change or deep change (add/remove one, hide/show one) | ||
+ an update should happen when : | ||
- the options.axes change | ||
+ there should be a super sweet CSS classes system so that people can style the **** out of the charts | ||
|
||
#### Options : | ||
|
||
```coffeescript | ||
$scope.options = | ||
axes: | ||
x: | ||
key: 'x' | ||
labelFunction: (value) -> value | ||
type: 'linear' | ||
min: 0 | ||
max: 10 | ||
ticks: 2 | ||
y: | ||
type: 'linear' | ||
min: 0 | ||
max: 1 | ||
ticks: 5 | ||
y2: | ||
type: 'linear' | ||
min: 0 | ||
max: 1 | ||
ticks: [1, 2, 3, 4] | ||
|
||
# Series styling should be handled in css | ||
# ideally, each series has either a css class or a function that returns a class | ||
# this way, the styling can be handled in a CSS file _and_ dynamically changed | ||
# each time $rootScope.$apply() is ran | ||
series: [ | ||
{ | ||
id: 'myId' # or auto-generated | ||
y: 'value' | ||
type: 'area' # can be 'area', 'column', 'dots', 'line' (default is 'line') | ||
label: 'Pouet' | ||
axis: 'y' # default is 'y' | ||
visible: true | ||
interpolation: # or undefined ? | ||
type: 'linear' | ||
tension: 0.7 | ||
|
||
# color, thickness, stripes, dots, dashed ? | ||
cssClass: (series, index, ...?) -> 'my-series' | ||
} | ||
] | ||
stacks: [ | ||
{axis: "y", series: ["id_0", "id_1", "id_2"]} | ||
] | ||
tooltip: | ||
|
||
# this should be better, without overlapping which is a pain to maitain | ||
# other modes could 'none' | ||
mode: 'scrubber' | ||
|
||
# this is a must have, and can be used in conjunction with 'none' so that | ||
# the tooltip is handled externally | ||
hook: (x, y, series) -> 'pouet' | ||
|
||
legend: | ||
mode: 'interactive' # 'inactive', 'hidden' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.