1.图表出现负数
chartOptions = {
maintainAspectRatio: false,
scales: {
yAxes: [{
ticks: {
suggestedMin: 0,
suggestedMax: 10
}
}]
}
}
2.
:host >>> p-chart{
display: -webkit-box;
-webkit-box-flex: 1;
}
:host >>> p-chart div:first-child{
display: -webkit-box;
-webkit-box-flex: 1;
}
:host >>> p-chart div:first-child .chartjs-hidden-iframe{
/*height:100%;*/
}
:host >>> p-chart div:first-child canvas{
/*width:auto !important;*/
/*height:355px !important;*/
}
:host >>> p-chart div:first-child{
width: 100%;
height: 360px;
position: relative;
}