WEB APP: Исправлен тип графика BAR в P8PChart, доработан пример chart.js

This commit is contained in:
Mikhail Chechnev 2023-12-12 21:11:33 +03:00
parent 508aa585d4
commit 46c9ce194e
2 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,7 @@ import Chart from "chart.js/auto"; //Диаграммы и графики
//Виды графиков
const P8P_CHART_TYPE = {
BAR: "small",
BAR: "bar",
LINE: "line",
PIE: "pie",
DOUGHNUT: "doughnut"

View File

@ -49,7 +49,6 @@ const Chart = ({ title }) => {
//Отработка нажатия на график
const handleChartClick = ({ item }) => {
console.log(item);
pOnlineShowUnit({
unitCode: "Contracts",
inputParameters: [{ name: item.SCOND, value: item.SCOND_VALUE }]