欢迎访问我的博客

angualr之chart.js图表

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;
}
 
posted @ 2017-06-29 18:15  对雪书空武  阅读(252)  评论(0)    收藏  举报
敬请关注下一期节目