Disable chart tooltips on admin panel
This commit is contained in:
@@ -182,8 +182,8 @@ onDestroy(() => {
|
||||
<button on:click={() => loadGraph(1051200, 1440, false)}>Two Years 1d</button>
|
||||
<button on:click={() => loadGraph(2628000, 1440, false)}>Five Years 1d</button>
|
||||
</div>
|
||||
<Chart bind:this={graphBandwidth} data_type="bytes" />
|
||||
<Chart bind:this={graphViews} data_type="number" />
|
||||
<Chart bind:this={graphBandwidth} data_type="bytes" tooltips={false} />
|
||||
<Chart bind:this={graphViews} data_type="number" tooltips={false} />
|
||||
<div class="highlight_border">
|
||||
Total usage from {start_time} to {end_time}<br/>
|
||||
{formatDataVolume(total_bandwidth, 3)} bandwidth,
|
||||
|
@@ -28,6 +28,7 @@ let chart_element
|
||||
let chart_object
|
||||
export let data_type = ""
|
||||
export let legend = true
|
||||
export let tooltips = true
|
||||
|
||||
export const chart = () => {
|
||||
return chart_object
|
||||
@@ -67,6 +68,9 @@ onMount(() => {
|
||||
boxHeight: 12,
|
||||
}
|
||||
},
|
||||
tooltip: {
|
||||
enabled: tooltips,
|
||||
},
|
||||
},
|
||||
layout: {
|
||||
padding: {
|
||||
@@ -107,7 +111,7 @@ onMount(() => {
|
||||
drawBorder: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user