score:2
you can hide the axis in your code. just add an angular on-mouseover event and set the display to true/false with negation !condition:
scales: {
xaxes: [
{
display: false
}
],
yaxes: [
{
display: false
}
]
}
score:5
if you want to remove the x axis and y axis data so to do that you need
to use scales and put in bar-chart-demo.ts file and inside export
class you have to paste like that what i mentioned below
and it worked .
public barchartoptions:any = {
scaleshowverticallines: false,
animation: false,
scaledisplay:false,
responsive: true,
scales: {
xaxes: [
{
display: false
}
],
yaxes: [
{
display: false
}
]
}
};``
Source: stackoverflow.com
Related Query
- Hiding unused axis in ng2-charts
- Hiding labels on y axis in Chart.js
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- How to align vertical axis area on two charts in chart.js
- ChartJS/High Charts Radar chart - Different radial axis labels for each category that appear on hover
- Charts JS: Doughnut chart and hiding tooltip for specific data index within each dataset
- ng2 charts bar chart need spacing between 2 bars in series Angular
- Ng2 charts - Animation doesn't work on line chart onInit
- ng2 scatter chart how to put labels in x axis
- How to draw vertical axis in google charts
- I am using chart js to draw a chart. I did everything right but i don't know why the x axis and y axis label is not comming in chart. code below
- The dataset for bar graph is not set properly using ng2 charts and ng5-slider in Angular
- The dataset in ng2 charts for bar graph is not setting properly
- Using a function in ng2 Charts
- Angular 8 and ng2 charts - Updating labels and data
- How to run Chart.js samples using source code
- How to add axis titles in chart.js charts
- how to not repeat code while creating multiple charts in chart js
- ng2 charts on Angular 9 not responsive
- How to set max and min value for Y axis
- In Chart.js set chart title, name of x axis and y axis?
- Chart.js - Formatting Y axis
- ChartJS Line Charts - remove color underneath lines
- Click events on Pie Charts in Chart.js
- Charts.js Formatting Y Axis with both Currency and Thousands Separator
- How to set ChartJS Y axis title?
- How to hide y axis line in ChartJs?
- Chart Js Change Label orientation on x-Axis for Line Charts
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- Change X and Y axis font color
More Query from same tag
- JavaScript Chart.js - Custom data formatting to display on tooltip
- Is there a max width of canvas Chart.js can draw charts within?
- Chartjs hovering over one Chart, shows tooltip across all charts
- Problem creating scatter graph using chart.js
- Chartjs - custom y axis range
- Chart.js flickering
- Adding different point style to each column from parsed csv in chart.js
- Radar Chart, Chart.js v3.2 labels customization
- Placing canvas (chart.js line chart) inside an SVG using d3.js
- How to edit my custom tooltips in my line chart using chart.js?
- Chart.js and right side free space
- Chart.js v2 - combined stacked bar chart and 2 unstacked lines
- Multiple usage of Javascript function
- Remove custom Chart Js tool tip colour square
- How to use a string returned from php by ajax as data for a chart.js chart?
- ChartJS place y-axis labels between ticks
- Chartjs 3.2 problem with setting whole numbers for Y axis
- Chart.JS full-width, responsive doughnut chart with Bootstrap
- How to set ChartJS animation speed?
- add a unit to label with chartjs plugin datalabels
- Datalabels of Chart JS can not display full values
- Live updating chart with data from database with Chart.js
- Changing color of specific ChartJS - AngularChartJS point
- How to make Chart JS ignore the scale between DatasSets
- Can I modify or extend ChartJS?
- Display with Month name in the Tooltip
- Chart.js pie chart to display "No Data" if the datasets are empty
- Creating mathematical charts using chart.js jQuery
- How to show Nested charts Radar chart within Doughnut Chart?
- chart.js bar chart color change based on value