source:
code/Website/data-files/x-labels-auto-min5-3rd-visible.txt
| Last change on this file was 7849, checked in by , 16 years ago | |
|---|---|
| File size: 1.2 KB | |
| Line | |
|---|---|
| 1 | { |
| 2 | "title":{ |
| 3 | "text":"X Labels - Auto w/ Min = 5 - Formatted and Display Every 3rd Label", |
| 4 | "style":"{font-size: 16px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }" |
| 5 | }, |
| 6 | |
| 7 | "x_axis":{ |
| 8 | "min":5, |
| 9 | "max":49, |
| 10 | "steps": 3, // grid lines for every third point |
| 11 | "labels": { |
| 12 | "rotate":315, |
| 13 | "text":"Label $#val#.00%", // format for the label |
| 14 | "steps":1, // save every label text (tooltip) |
| 15 | "visible-steps":3 // but show every 3rd one |
| 16 | } |
| 17 | }, |
| 18 | |
| 19 | "elements":[ |
| 20 | { |
| 21 | "type": "line", |
| 22 | "colour": "#736AFF", |
| 23 | "width": 2, |
| 24 | "dot-style": { "type":"hollow", "tip":"X: #x_label#" }, |
| 25 | "tip": "#x_label#<br>#val#", |
| 26 | "values" : [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.48,2.44,2.35,2.23,2.08] |
| 27 | } |
| 28 | ], |
| 29 | |
| 30 | "tooltip":{ |
| 31 | "shadow":false, |
| 32 | "colour":"#00d000", |
| 33 | "background":"#d0d0ff", |
| 34 | "title":"{font-size: 14px; color: #905050;}", |
| 35 | "body":"{font-size: 10px; font-weight: bold; color: #9090ff;}" |
| 36 | }, |
| 37 | |
| 38 | "y_axis":{ |
| 39 | "max": 3 |
| 40 | } |
| 41 | |
| 42 | } |
Note:
See TracBrowser
for help on using the repository browser.
