apisearch-events-ui
Version:
Javascript User Interface to visualize all events data.
34 lines (32 loc) • 911 B
JavaScript
const datasetDefaultOptions = {
fill: true,
lineTension: 0.3,
borderCapStyle: 'butt',
borderWidth: 2,
borderDash: [],
borderDashOffset: 0.0,
borderJoinStyle: 'miter',
pointBorderColor: "#fff",
pointHoverBackgroundColor: "#fff",
pointRadius: 3,
pointHoverRadius: 3,
pointBorderWidth: 1,
pointHoverBorderWidth: 1,
pointHitRadius: 10
};
export const foundQueriesDatasetOptions = {
...datasetDefaultOptions,
label: 'Found results',
borderColor: "#91B9CA",
backgroundColor: "rgba(223, 233, 237, 0.4)",
pointBackgroundColor: "#91B9CA",
pointHoverBorderColor: "#91B9CA",
};
export const notFoundQueriesDatasetOptions = {
...datasetDefaultOptions,
label: 'Not found results',
borderColor: "#DBDBDB",
backgroundColor: "rgba(237, 240, 241, 0.4)",
pointBackgroundColor: "#DBDBDB",
pointHoverBorderColor: "#DBDBDB"
};