forked from CITKParus/P8-Panels
WEB APP: Исправлен тип графика BAR в P8PChart, доработан пример chart.js
This commit is contained in:
parent
508aa585d4
commit
46c9ce194e
@ -17,7 +17,7 @@ import Chart from "chart.js/auto"; //Диаграммы и графики
|
|||||||
|
|
||||||
//Виды графиков
|
//Виды графиков
|
||||||
const P8P_CHART_TYPE = {
|
const P8P_CHART_TYPE = {
|
||||||
BAR: "small",
|
BAR: "bar",
|
||||||
LINE: "line",
|
LINE: "line",
|
||||||
PIE: "pie",
|
PIE: "pie",
|
||||||
DOUGHNUT: "doughnut"
|
DOUGHNUT: "doughnut"
|
||||||
|
@ -49,7 +49,6 @@ const Chart = ({ title }) => {
|
|||||||
|
|
||||||
//Отработка нажатия на график
|
//Отработка нажатия на график
|
||||||
const handleChartClick = ({ item }) => {
|
const handleChartClick = ({ item }) => {
|
||||||
console.log(item);
|
|
||||||
pOnlineShowUnit({
|
pOnlineShowUnit({
|
||||||
unitCode: "Contracts",
|
unitCode: "Contracts",
|
||||||
inputParameters: [{ name: item.SCOND, value: item.SCOND_VALUE }]
|
inputParameters: [{ name: item.SCOND, value: item.SCOND_VALUE }]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user