|
22 | 22 | @date-axis="(visible) => showDateAxis = visible"
|
23 | 23 | />
|
24 | 24 |
|
25 |
| - <button |
26 |
| - v-if=" |
27 |
| - showDateAxis && chartShown && |
28 |
| - zoomExtent.length > 0 && |
29 |
| - !readOnly |
30 |
| - " |
31 |
| - class="button is-rounded is-small reset-btn" |
32 |
| - @click.stop="handleZoomReset" |
33 |
| - > |
34 |
| - Zoom Out |
35 |
| - </button> |
| 25 | + <div class="chart-border"> |
| 26 | + <button |
| 27 | + v-if=" |
| 28 | + showDateAxis && chartShown && |
| 29 | + zoomExtent.length > 0 && |
| 30 | + !readOnly |
| 31 | + " |
| 32 | + class="button is-rounded is-small reset-btn" |
| 33 | + @click.stop="handleZoomReset" |
| 34 | + > |
| 35 | + Zoom Out |
| 36 | + </button> |
36 | 37 |
|
37 |
| - <line-vis |
38 |
| - v-if="chartShown" |
39 |
| - :read-only="readOnly" |
40 |
| - :domain-id="'_emissionIntensity'" |
41 |
| - :domain-colour="lineColour" |
42 |
| - :dataset="emissionIntensityDataset" |
43 |
| - :dynamic-extent="zoomExtent" |
44 |
| - :hover-date="hoverDate" |
45 |
| - :hover-on="hoverOn" |
46 |
| - :focus-date="focusDate" |
47 |
| - :focus-on="focusOn" |
48 |
| - :range="range" |
49 |
| - :interval="interval" |
50 |
| - :curve="chartCurve" |
51 |
| - :y-axis-log="false" |
52 |
| - :y-min="-50" |
53 |
| - :y-max="yMax" |
54 |
| - :show-x-axis="false" |
55 |
| - :show-tooltip="false" |
56 |
| - :show-point-on-hover="true" |
57 |
| - :vis-height="chartHeight" |
58 |
| - :show-zoom-out="showDateAxis" |
59 |
| - :x-guides="xGuides" |
60 |
| - :y-axis-ticks="3" |
61 |
| - :filter-period="filterPeriod" |
62 |
| - :class="{ dragging: dragging }" |
63 |
| - class="emission-intensity-vis vis-chart" |
64 |
| - @dateOver="handleDateHover" |
65 |
| - @svgClick="handleSvgClick" |
66 |
| - @enter="handleVisEnter" |
67 |
| - @leave="handleVisLeave" |
68 |
| - /> |
| 38 | + <line-vis |
| 39 | + v-if="chartShown" |
| 40 | + :read-only="readOnly" |
| 41 | + :domain-id="'_emissionIntensity'" |
| 42 | + :domain-colour="lineColour" |
| 43 | + :dataset="emissionIntensityDataset" |
| 44 | + :dynamic-extent="zoomExtent" |
| 45 | + :hover-date="hoverDate" |
| 46 | + :hover-on="hoverOn" |
| 47 | + :focus-date="focusDate" |
| 48 | + :focus-on="focusOn" |
| 49 | + :range="range" |
| 50 | + :interval="interval" |
| 51 | + :curve="chartCurve" |
| 52 | + :y-axis-log="false" |
| 53 | + :y-min="-50" |
| 54 | + :y-max="yMax" |
| 55 | + :show-x-axis="false" |
| 56 | + :show-tooltip="false" |
| 57 | + :show-point-on-hover="true" |
| 58 | + :vis-height="chartHeight" |
| 59 | + :show-zoom-out="showDateAxis" |
| 60 | + :x-guides="xGuides" |
| 61 | + :y-axis-ticks="3" |
| 62 | + :filter-period="filterPeriod" |
| 63 | + :class="{ dragging: dragging }" |
| 64 | + class="emission-intensity-vis vis-chart" |
| 65 | + @dateOver="handleDateHover" |
| 66 | + @svgClick="handleSvgClick" |
| 67 | + @enter="handleVisEnter" |
| 68 | + @leave="handleVisLeave" |
| 69 | + /> |
69 | 70 |
|
70 |
| - <date-brush |
71 |
| - v-if="showDateAxis && chartShown" |
72 |
| - :dataset="emissionIntensityDataset" |
73 |
| - :zoom-range="zoomExtent" |
74 |
| - :read-only="readOnly" |
75 |
| - :interval="interval" |
76 |
| - :filter-period="filterPeriod" |
77 |
| - :x-ticks="xTicks" |
78 |
| - :tick-format="tickFormat" |
79 |
| - :second-tick-format="secondTickFormat" |
80 |
| - class="date-brush vis-chart" |
81 |
| - @date-hover="handleDateHover" |
82 |
| - @date-filter="handleZoomExtent" |
83 |
| - @enter="handleVisEnter" |
84 |
| - @leave="handleVisLeave" |
85 |
| - /> |
| 71 | + <date-brush |
| 72 | + v-if="showDateAxis && chartShown" |
| 73 | + :dataset="emissionIntensityDataset" |
| 74 | + :zoom-range="zoomExtent" |
| 75 | + :read-only="readOnly" |
| 76 | + :interval="interval" |
| 77 | + :filter-period="filterPeriod" |
| 78 | + :x-ticks="xTicks" |
| 79 | + :tick-format="tickFormat" |
| 80 | + :second-tick-format="secondTickFormat" |
| 81 | + class="date-brush vis-chart" |
| 82 | + @date-hover="handleDateHover" |
| 83 | + @date-filter="handleZoomExtent" |
| 84 | + @enter="handleVisEnter" |
| 85 | + @leave="handleVisLeave" |
| 86 | + /> |
| 87 | + </div> |
86 | 88 |
|
87 | 89 | <Divider
|
88 | 90 | v-if="allowResize"
|
89 |
| - style="margin-left: 0.5rem;" |
90 | 91 | :allow-x="false"
|
91 | 92 | :show="showDivider"
|
92 | 93 | @dragging="(d) => dragging = d"
|
|
0 commit comments