|
155 | 155 | "required": false, |
156 | 156 | "description": "The series series columns mapped to stacking up and down.\nHas the format:\n```\n \"columns\": {\n up: [\"in\", ...],\n down: [\"out\", ...]\n }\n ```", |
157 | 157 | "defaultValue": { |
158 | | - "value": "{\n up: [\"value\"],\n down: []\n}", |
| 158 | + "value": "{\n up: [\"value\"],\n down: []\n}", |
159 | 159 | "computed": false |
160 | 160 | } |
161 | 161 | }, |
|
489 | 489 | "required": false, |
490 | 490 | "description": "The style of the info box itself. Typically you'd want to\nspecify a fill color, and stroke color / width here.", |
491 | 491 | "defaultValue": { |
492 | | - "value": "{\n stroke: \"#999\",\n fill: \"white\",\n opacity: 0.90,\n pointerEvents: \"none\"\n}", |
| 492 | + "value": "{\n stroke: \"#999\",\n fill: \"white\",\n opacity: 0.90,\n pointerEvents: \"none\"\n}", |
493 | 493 | "computed": false |
494 | 494 | } |
495 | 495 | }, |
|
548 | 548 | "required": false, |
549 | 549 | "description": "The style of the infoBox dot at the end of the marker", |
550 | 550 | "defaultValue": { |
551 | | - "value": "{\n fill: \"#999\"\n}", |
| 551 | + "value": "{\n fill: \"#999\"\n}", |
552 | 552 | "computed": false |
553 | 553 | } |
554 | 554 | }, |
|
625 | 625 | }, |
626 | 626 | "stemStyle": { |
627 | 627 | "defaultValue": { |
628 | | - "value": "{\n stroke: \"#999\",\n cursor: \"crosshair\",\n pointerEvents: \"none\"\n}", |
| 628 | + "value": "{\n stroke: \"#999\",\n cursor: \"crosshair\",\n pointerEvents: \"none\"\n}", |
629 | 629 | "computed": false |
630 | 630 | } |
631 | 631 | } |
|
659 | 659 | "required": false, |
660 | 660 | "description": "An object describing the style of the baseline of the form\n{ label, line }. \"label\" and \"line\" are both objects containing\nthe inline CSS for that part of the baseline.", |
661 | 661 | "defaultValue": { |
662 | | - "value": "{\n label: {\n fill: \"#8B7E7E\", // Default label color\n fontWeight: 100,\n fontSize: 11,\n pointerEvents: \"none\"\n },\n line: {\n stroke: \"#626262\",\n strokeWidth: 1,\n strokeDasharray: \"5,3\",\n pointerEvents: \"none\"\n }\n}", |
| 662 | + "value": "{\n label: {\n fill: \"#8B7E7E\", // Default label color\n fontWeight: 100,\n fontSize: 11,\n pointerEvents: \"none\"\n },\n line: {\n stroke: \"#626262\",\n strokeWidth: 1,\n strokeDasharray: \"5,3\",\n pointerEvents: \"none\"\n }\n}", |
663 | 663 | "computed": false |
664 | 664 | } |
665 | 665 | }, |
|
806 | 806 | "series": { |
807 | 807 | "type": { |
808 | 808 | "name": "custom", |
809 | | - "raw": "(props, propName, componentName) => {\n const value = props[propName];\n if (!(value instanceof TimeSeries)) {\n return new Error(\n `A TimeSeries needs to be passed to ${componentName} as the 'series' prop.`\n );\n }\n\n // TODO: Better detection of errors\n\n // everything ok\n return null;\n}" |
| 809 | + "raw": "(props, propName, componentName) => {\n const value = props[propName];\n if (!(value instanceof TimeSeries)) {\n return new Error(\n `A TimeSeries needs to be passed to ${componentName} as the 'series' prop.`\n );\n }\n\n // TODO: Better detection of errors\n\n // everything ok\n return null;\n}" |
810 | 810 | }, |
811 | 811 | "required": false, |
812 | 812 | "description": "What [Pond TimeSeries](http://software.es.net/pond#timeseries)\ndata to visualize. See general notes on the BoxChart." |
|
885 | 885 | "required": false, |
886 | 886 | "description": "The style of the info box and connecting lines", |
887 | 887 | "defaultValue": { |
888 | | - "value": "{\n stroke: \"#999\",\n fill: \"white\",\n opacity: 0.90,\n pointerEvents: \"none\"\n}", |
| 888 | + "value": "{\n stroke: \"#999\",\n fill: \"white\",\n opacity: 0.90,\n pointerEvents: \"none\"\n}", |
889 | 889 | "computed": false |
890 | 890 | } |
891 | 891 | }, |
|
1020 | 1020 | }, |
1021 | 1021 | "stemStyle": { |
1022 | 1022 | "defaultValue": { |
1023 | | - "value": "{\n stroke: \"#999\",\n cursor: \"crosshair\",\n pointerEvents: \"none\"\n}", |
| 1023 | + "value": "{\n stroke: \"#999\",\n cursor: \"crosshair\",\n pointerEvents: \"none\"\n}", |
1024 | 1024 | "computed": false |
1025 | 1025 | } |
1026 | 1026 | }, |
1027 | 1027 | "markerStyle": { |
1028 | 1028 | "defaultValue": { |
1029 | | - "value": "{\n fill: \"#999\"\n}", |
| 1029 | + "value": "{\n fill: \"#999\"\n}", |
1030 | 1030 | "computed": false |
1031 | 1031 | } |
1032 | 1032 | }, |
|
1377 | 1377 | }, |
1378 | 1378 | "format": { |
1379 | 1379 | "type": { |
1380 | | - "name": "string" |
| 1380 | + "name": "union", |
| 1381 | + "value": [ |
| 1382 | + { |
| 1383 | + "name": "string" |
| 1384 | + }, |
| 1385 | + { |
| 1386 | + "name": "func" |
| 1387 | + } |
| 1388 | + ] |
1381 | 1389 | }, |
1382 | 1390 | "required": false, |
1383 | | - "description": "Provides several options as to the format of the time axis labels.\nIn general the time axis will generate an appropriate time scale based\non the timeRange prop and there is no need to set this.\n\nHowever, four special options exist: setting format to \"day\", \"month\" or\n\"year\" will show only ticks on those, and every one of those intervals.\nFor example maybe you are showing a bar chart for October 2014 then setting\nthe format to \"day\" will insure that a label is placed for each and every day.\n\nThe last option is \"relative\". This interprets the time as a duration. This\nis good for data that is specified relative to its start time, rather than\nas an actual date/time." |
| 1391 | + "description": "Provides several options as to the format of the time axis labels.\n\nIn general the time axis will generate an appropriate time scale based\non the timeRange prop and there is no need to set this.\n\nHowever, some options exist:\n\n - setting format to \"day\", \"month\" or \"year\" will show only ticks on those,\nand every one of those intervals. For example maybe you are showing a bar\nchart for October 2014 then setting the format to \"day\" will insure that a\nlabel is placed for each and every day\n\n - setting format to \"relative\" interprets the time as a duration. This\nis good for data that is specified relative to its start time, rather than\nas an actual date/time\n\n - setting the format to a d3 format string will use that format\n\n - supplying a function for format will cause that function to be called\nwhenever rendering a time" |
1384 | 1392 | }, |
1385 | 1393 | "transition": { |
1386 | 1394 | "type": { |
|
1415 | 1423 | ] |
1416 | 1424 | }, |
1417 | 1425 | "required": false, |
1418 | | - "description": "Defines whether Grid is overlayed or underlayed", |
| 1426 | + "description": "Defines whether grid is overlayed (\"over\"( or underlayed (\"under\")\nwith respect to the charts", |
1419 | 1427 | "defaultValue": { |
1420 | 1428 | "value": "\"over\"", |
1421 | 1429 | "computed": false |
|
1438 | 1446 | "required": false, |
1439 | 1447 | "description": "Adjust the time axis style. This is an object of the\nform { labels, axis } where \"label\" and \"axis\" are objects\nthemselves. The options here are best represented by\nan example:\n\n```\n const axisStyle = {\n labels: {\n labelColor: \"grey\",\n labelWeight: 100,\n labelSize: 11\n },\n axis: {\n axisColor: \"grey\",\n axisWidth: 1\n }\n };\n```", |
1440 | 1448 | "defaultValue": { |
1441 | | - "value": "{\n labels: {\n labelColor: \"#8B7E7E\",\n labelWeight: 100,\n labelSize: 11\n },\n axis: {\n axisColor: \"#C0C0C0\",\n axisWidth: 1\n }\n}", |
| 1449 | + "value": "{\n labels: {\n labelColor: \"#8B7E7E\",\n labelWeight: 100,\n labelSize: 11\n },\n axis: {\n axisColor: \"#C0C0C0\",\n axisWidth: 1\n }\n}", |
1442 | 1450 | "computed": false |
1443 | 1451 | } |
1444 | 1452 | }, |
|
2160 | 2168 | "required": false, |
2161 | 2169 | "description": "The style of the info box itself. Typically you'd want to\nspecify a fill color, and stroke color/width here.", |
2162 | 2170 | "defaultValue": { |
2163 | | - "value": "{\n fill: \"white\",\n opacity: 0.90,\n stroke: \"#999\",\n pointerEvents: \"none\"\n}", |
| 2171 | + "value": "{\n fill: \"white\",\n opacity: 0.90,\n stroke: \"#999\",\n pointerEvents: \"none\"\n}", |
2164 | 2172 | "computed": false |
2165 | 2173 | } |
2166 | 2174 | }, |
|
2248 | 2256 | "required": false, |
2249 | 2257 | "description": "The style of the event marker dot", |
2250 | 2258 | "defaultValue": { |
2251 | | - "value": "{\n fill: \"#999\"\n}", |
| 2259 | + "value": "{\n fill: \"#999\"\n}", |
2252 | 2260 | "computed": false |
2253 | 2261 | } |
2254 | 2262 | }, |
|
2304 | 2312 | }, |
2305 | 2313 | "stemStyle": { |
2306 | 2314 | "defaultValue": { |
2307 | | - "value": "{\n stroke: \"#999\",\n cursor: \"crosshair\",\n pointerEvents: \"none\"\n}", |
| 2315 | + "value": "{\n stroke: \"#999\",\n cursor: \"crosshair\",\n pointerEvents: \"none\"\n}", |
2308 | 2316 | "computed": false |
2309 | 2317 | } |
2310 | 2318 | }, |
2311 | 2319 | "markerLabelStyle": { |
2312 | 2320 | "defaultValue": { |
2313 | | - "value": "{\n fill: \"#999\"\n}", |
| 2321 | + "value": "{\n fill: \"#999\"\n}", |
2314 | 2322 | "computed": false |
2315 | 2323 | } |
2316 | 2324 | } |
|
3261 | 3269 | "required": false, |
3262 | 3270 | "description": "The style of the info box and connecting lines. The style should\nbe an object of the form { line, box }. Line and box are both objects\ncontaining the inline CSS for those elements of the info tracker.", |
3263 | 3271 | "defaultValue": { |
3264 | | - "value": "{\n stroke: \"#999\",\n fill: \"white\",\n opacity: 0.90,\n pointerEvents: \"none\"\n}", |
| 3272 | + "value": "{\n stroke: \"#999\",\n fill: \"white\",\n opacity: 0.90,\n pointerEvents: \"none\"\n}", |
3265 | 3273 | "computed": false |
3266 | 3274 | } |
3267 | 3275 | }, |
|
3390 | 3398 | }, |
3391 | 3399 | "stemStyle": { |
3392 | 3400 | "defaultValue": { |
3393 | | - "value": "{\n stroke: \"#999\",\n cursor: \"crosshair\",\n pointerEvents: \"none\"\n}", |
| 3401 | + "value": "{\n stroke: \"#999\",\n cursor: \"crosshair\",\n pointerEvents: \"none\"\n}", |
3394 | 3402 | "computed": false |
3395 | 3403 | } |
3396 | 3404 | }, |
3397 | 3405 | "markerStyle": { |
3398 | 3406 | "defaultValue": { |
3399 | | - "value": "{\n fill: \"#999\"\n}", |
| 3407 | + "value": "{\n fill: \"#999\"\n}", |
3400 | 3408 | "computed": false |
3401 | 3409 | } |
3402 | 3410 | } |
|
3450 | 3458 | }, |
3451 | 3459 | "format": { |
3452 | 3460 | "type": { |
3453 | | - "name": "string" |
| 3461 | + "name": "union", |
| 3462 | + "value": [ |
| 3463 | + { |
| 3464 | + "name": "string" |
| 3465 | + }, |
| 3466 | + { |
| 3467 | + "name": "func" |
| 3468 | + } |
| 3469 | + ] |
3454 | 3470 | }, |
3455 | 3471 | "required": false, |
3456 | 3472 | "description": "" |
|
3479 | 3495 | "required": false, |
3480 | 3496 | "description": "", |
3481 | 3497 | "defaultValue": { |
3482 | | - "value": "{\n labels: {\n labelColor: \"#8B7E7E\", // Default label color\n labelWeight: 100,\n labelSize: 11\n },\n axis: {\n axisColor: \"#C0C0C0\"\n }\n}", |
| 3498 | + "value": "{\n labels: {\n labelColor: \"#8B7E7E\", // Default label color\n labelWeight: 100,\n labelSize: 11\n },\n axis: {\n axisColor: \"#C0C0C0\"\n }\n}", |
3483 | 3499 | "computed": false |
3484 | 3500 | } |
3485 | 3501 | } |
|
3583 | 3599 | "required": false, |
3584 | 3600 | "description": "The style of the info box and connecting lines. This is an\nobject of the form { line, box, dot }. Line, box and dot\nare themselves objects representing inline CSS for each of\nthe pieces of the info marker.", |
3585 | 3601 | "defaultValue": { |
3586 | | - "value": "{\n line: {\n stroke: \"#999\",\n cursor: \"crosshair\",\n pointerEvents: \"none\"\n },\n box: {\n fill: \"white\",\n opacity: 0.90,\n stroke: \"#999\",\n pointerEvents: \"none\"\n },\n dot: {\n fill: \"#999\"\n }\n}", |
| 3602 | + "value": "{\n line: {\n stroke: \"#999\",\n cursor: \"crosshair\",\n pointerEvents: \"none\"\n },\n box: {\n fill: \"white\",\n opacity: 0.9,\n stroke: \"#999\",\n pointerEvents: \"none\"\n },\n dot: {\n fill: \"#999\"\n }\n}", |
3587 | 3603 | "computed": false |
3588 | 3604 | } |
3589 | 3605 | }, |
|
3644 | 3660 | }, |
3645 | 3661 | "timeFormat": { |
3646 | 3662 | "type": { |
3647 | | - "name": "string" |
| 3663 | + "name": "union", |
| 3664 | + "value": [ |
| 3665 | + { |
| 3666 | + "name": "string" |
| 3667 | + }, |
| 3668 | + { |
| 3669 | + "name": "func" |
| 3670 | + } |
| 3671 | + ] |
3648 | 3672 | }, |
3649 | 3673 | "required": false, |
3650 | | - "description": "The time format (d3 time format) used for display of the time above the info box." |
| 3674 | + "description": "The time format used for display of the time above the info box." |
3651 | 3675 | }, |
3652 | 3676 | "timeScale": { |
3653 | 3677 | "type": { |
|
4052 | 4076 | "required": false, |
4053 | 4077 | "description": "Object specifying the available parameters by which the axis can be\nstyled. The object can contain: \"labels\" and \"axis\". Each of these\nis an inline CSS style applied to the tick labels and axis lines\nrespectively.\n\nIn addition the axis label itself can be styled with: \"labelColor\",\n\"labelFont\", \"labelWidth\" and \"labelSize\".", |
4054 | 4078 | "defaultValue": { |
4055 | | - "value": "{\n labels: {\n labelColor: \"#8B7E7E\", // Default label color\n labelWeight: 100,\n labelSize: 11\n },\n axis: {\n axisColor: \"#C0C0C0\"\n }\n}", |
| 4079 | + "value": "{\n labels: {\n labelColor: \"#8B7E7E\", // Default label color\n labelWeight: 100,\n labelSize: 11\n },\n axis: {\n axisColor: \"#C0C0C0\"\n }\n}", |
4056 | 4080 | "computed": false |
4057 | 4081 | } |
4058 | 4082 | }, |
|
0 commit comments