mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
BarChart: hide cursor crosshair (#34862)
This commit is contained in:
parent
e1088e9360
commit
3fd006604f
@ -65,6 +65,8 @@ Object {
|
|||||||
"stroke": [Function],
|
"stroke": [Function],
|
||||||
"width": [Function],
|
"width": [Function],
|
||||||
},
|
},
|
||||||
|
"x": false,
|
||||||
|
"y": false,
|
||||||
},
|
},
|
||||||
"hooks": Object {
|
"hooks": Object {
|
||||||
"draw": Array [
|
"draw": Array [
|
||||||
@ -185,6 +187,8 @@ Object {
|
|||||||
"stroke": [Function],
|
"stroke": [Function],
|
||||||
"width": [Function],
|
"width": [Function],
|
||||||
},
|
},
|
||||||
|
"x": false,
|
||||||
|
"y": false,
|
||||||
},
|
},
|
||||||
"hooks": Object {
|
"hooks": Object {
|
||||||
"draw": Array [
|
"draw": Array [
|
||||||
@ -305,6 +309,8 @@ Object {
|
|||||||
"stroke": [Function],
|
"stroke": [Function],
|
||||||
"width": [Function],
|
"width": [Function],
|
||||||
},
|
},
|
||||||
|
"x": false,
|
||||||
|
"y": false,
|
||||||
},
|
},
|
||||||
"hooks": Object {
|
"hooks": Object {
|
||||||
"draw": Array [
|
"draw": Array [
|
||||||
@ -425,6 +431,8 @@ Object {
|
|||||||
"stroke": [Function],
|
"stroke": [Function],
|
||||||
"width": [Function],
|
"width": [Function],
|
||||||
},
|
},
|
||||||
|
"x": false,
|
||||||
|
"y": false,
|
||||||
},
|
},
|
||||||
"hooks": Object {
|
"hooks": Object {
|
||||||
"draw": Array [
|
"draw": Array [
|
||||||
@ -545,6 +553,8 @@ Object {
|
|||||||
"stroke": [Function],
|
"stroke": [Function],
|
||||||
"width": [Function],
|
"width": [Function],
|
||||||
},
|
},
|
||||||
|
"x": false,
|
||||||
|
"y": false,
|
||||||
},
|
},
|
||||||
"hooks": Object {
|
"hooks": Object {
|
||||||
"draw": Array [
|
"draw": Array [
|
||||||
@ -665,6 +675,8 @@ Object {
|
|||||||
"stroke": [Function],
|
"stroke": [Function],
|
||||||
"width": [Function],
|
"width": [Function],
|
||||||
},
|
},
|
||||||
|
"x": false,
|
||||||
|
"y": false,
|
||||||
},
|
},
|
||||||
"hooks": Object {
|
"hooks": Object {
|
||||||
"draw": Array [
|
"draw": Array [
|
||||||
@ -785,6 +797,8 @@ Object {
|
|||||||
"stroke": [Function],
|
"stroke": [Function],
|
||||||
"width": [Function],
|
"width": [Function],
|
||||||
},
|
},
|
||||||
|
"x": false,
|
||||||
|
"y": false,
|
||||||
},
|
},
|
||||||
"hooks": Object {
|
"hooks": Object {
|
||||||
"draw": Array [
|
"draw": Array [
|
||||||
@ -905,6 +919,8 @@ Object {
|
|||||||
"stroke": [Function],
|
"stroke": [Function],
|
||||||
"width": [Function],
|
"width": [Function],
|
||||||
},
|
},
|
||||||
|
"x": false,
|
||||||
|
"y": false,
|
||||||
},
|
},
|
||||||
"hooks": Object {
|
"hooks": Object {
|
||||||
"draw": Array [
|
"draw": Array [
|
||||||
|
@ -353,6 +353,10 @@ export function getConfig(opts: BarsOptions, theme: GrafanaTheme2) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
cursor: {
|
||||||
|
x: false,
|
||||||
|
y: false,
|
||||||
|
},
|
||||||
// scale & axis opts
|
// scale & axis opts
|
||||||
xValues,
|
xValues,
|
||||||
xSplits,
|
xSplits,
|
||||||
|
@ -75,6 +75,8 @@ export const preparePlotConfigBuilder: UPlotConfigPrepFn<BarChartOptions> = ({
|
|||||||
|
|
||||||
const config = getConfig(opts, theme);
|
const config = getConfig(opts, theme);
|
||||||
|
|
||||||
|
builder.setCursor(config.cursor);
|
||||||
|
|
||||||
builder.addHook('init', config.init);
|
builder.addHook('init', config.init);
|
||||||
builder.addHook('drawClear', config.drawClear);
|
builder.addHook('drawClear', config.drawClear);
|
||||||
builder.addHook('draw', config.draw);
|
builder.addHook('draw', config.draw);
|
||||||
|
Loading…
Reference in New Issue
Block a user