Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliot Nahman committed Jun 30, 2017
2 parents 0569585 + 612d1bf commit d27eb8f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 57 deletions.
64 changes: 8 additions & 56 deletions dev-global-toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,60 +31,8 @@ <h2>Example of a timeseries with many options and using old data format with the
action-config='{{actionConfig}}'
horizontal-alignment='left'
id="toolbar"
toolbar-config='{
"customzoom": {
"tooltipLabel": "zoom",
"icon": "fa-search",
"selectable": true,
"actionConfig": {
"mousedown": "startZooming",
"mouseup": "stopZooming",
"mouseout": "null",
"mousemove": "null"
},
"subConfig": {
"x": {
"title": "X",
"tooltipLabel": "Zoom on X axis only",
"eventName": "my-custom-click",
"selectable": true,
"selected": true,
"onClick": "function() { this.set(\"selectionType\", \"xAxis\");}"
},
"y": {
"title": "Y",
"tooltipLabel": "Zoom on Y axis only",
"selectable": true,
"onClick": "function() { this.set(\"selectionType\", \"yAxis\");}"
},
"xy": {
"title": "XY",
"tooltipLabel": "Zoom on X and Y axis",
"selectable": true,
"onClick": "function() { this.set(\"selectionType\", \"xy\");}"
},
"zoomIn": {
"icon": "fa-plus",
"tooltipLabel": "zoom in",
"eventName": "px-vis-toolbar-zoom-in"
},
"zoomOut": {
"icon": "fa-minus",
"tooltipLabel": "zoom out",
"eventName": "px-vis-toolbar-zoom-out"
},
"undoZoom": {
"icon": "fa-undo",
"tooltipLabel": "undo zoom",
"eventName": "px-vis-toolbar-undo-zoom"
},
"resetZoom": {
"icon": "fa-expand",
"tooltipLabel": "reset zoom to inital value",
"eventName": "px-vis-toolbar-reset-zoom"
}
}
},
config='{
"zoom": true,
"pan": true,
"tooltip": true,
"logHover": {
Expand Down Expand Up @@ -120,7 +68,7 @@ <h2>Example of a timeseries with many options and using old data format with the
height="500"
selection-type="xAxis"
show-tooltip
toolbar-config="{}"
toolbar-config='{"config" : {}}'
toolbar-sub-config="[[toolbarSubConfig]]"
action-config='[[actionConfig]]'
series-config='{
Expand All @@ -134,6 +82,10 @@ <h2>Example of a timeseries with many options and using old data format with the
"y":"y1",
"x": "x"
}}'
chart-extents='{
"x": ["dynamic", "dynamic"],
"y": ["dynamic", "dynamic"]
}'
default-series-config='{
"type": "line",
"yAxisUnit": "Hz"
Expand Down Expand Up @@ -187,7 +139,7 @@ <h2>Example of a timeseries with mostly default data and using the new data form
width = "1000"
height = "500"
include-all-series
toolbar-config="{}"
toolbar-config='{"config" : {}}'
toolbar-sub-config="[[toolbarSubConfig]]"
action-config='[[actionConfig]]'
selection-type= "xy"
Expand Down
4 changes: 3 additions & 1 deletion px-vis-timeseries.html
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,9 @@
generating-crosshair-data="{{generatingCrosshairData}}"
interaction-svg="{{interactionSvg}}"
extents-data="{{extentsData}}"
action-config="[[actionConfig]]">
action-config="[[actionConfig]]"
selection-type="[[selectionType]]"
extents-action="{{extentsAction}}">
</px-vis-interaction-space>

<px-vis-cursor
Expand Down

0 comments on commit d27eb8f

Please sign in to comment.