Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Line chart always shows value on data point

rjy_rmtech free asked 5 years ago


Expected behavior

Line chart in the documentation just has points connected by lines, without any data value on the chart

Actual behavior

Point values are rendered on top of each point, even though I am not using chartjs-plugin-datalabels

Resources (screenshots, code snippets etc.)

Screenshot

Chart options I am using:

public chartOptions: any = {
    responsive: true,
    maintainAspectRatio: false,
    plugins: {}
};

Konrad Stępień staff commented 5 years ago

Hi @rjy_rmtech,

Can you send me snippet with full code?

When I copy the example from the documentation with your options I do not have this problem.

public chartOptions: any = {
    responsive: true,
    maintainAspectRatio: false,
    plugins: {}
};

charts


rjy_rmtech free commented 5 years ago

I had to give up on this, copying the example from your documentation produces the same behaviour as the chart in the screenshot. Instead I had to Chart.js directly, for this reason and also because there is insufficient data provided in the click event.


Konrad Stępień staff commented 5 years ago

Either way, could I get more code to debug the problem?



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.8.0
  • Device: Mac
  • Browser: Chrome
  • OS: MacOS
  • Provided sample code: Yes
  • Provided link: Yes