0👍
Having faced this issue in my project, I realized ng2-charts doesn’t provide you anyway that you can display long ticks. So I had to move to google-charts.
NPM documentation for ng2-google-charts
If you are having a hard time configuring refer this article – Using Google Charts in Angular 4 project
If it’s not scroll-able in mobile view, use css such as
<div class="google-chart-row">
<pie-chart [data]="question.googleChartData" [elementId]="question.questionId"></pie-chart>
</div>
.google-chart-row{
display: block;
width: 100 %;
overflow-x: auto;
-ms-overflow-style: -ms-autohiding-scrollbar;
}
- Chartjs-Laravel – How to Display both count and percentage (%) in chartjs pie chart
- Chartjs-Aligning zero on y axis to the labels on x axis of line chart in chartjs
Source:stackexchange.com