How can I eliminate the bubble box that appears at the bottom of a line chart in ApexCharts?

Is there a way to get rid of or hide the bubble box that appears at the bottom of the line chart when it is hovered over? I have checked the documentation but couldn't find a solution. Apologies for the question, as I am still a beginner in Angular and using apexcharts.

Here is an example: https://codesandbox.io/s/apx-line-basic-forked-iltgss?file=/src/app/app.component.html

Image of what I am trying to remove: https://i.sstatic.net/8WUoB.jpg

app.component.ts

import { Component, ViewChild } from "@angular/core";

import {
  ChartComponent,
  ApexAxisChartSeries,
  ApexChart,
  ApexXAxis,
  ApexYAxis,
  ApexStroke,
  ApexGrid,
  ApexFill,
  ApexTooltip
} from "ng-apexcharts";

export type ChartOptions = {
  series: ApexAxisChartSeries;
  chart: ApexChart;
  xaxis: ApexXAxis;
  yaxis: ApexYAxis;
  grid: ApexGrid;
  stroke: ApexStroke;
  fill: ApexFill;
  tooltip: ApexTooltip;
};

@Component({
  selector: "app-root",
  templateUrl: "./app.component.html",
  styleUrls: ["./app.component.css"]
})
export class AppComponent {
  @ViewChild("chart") chart: ChartComponent;
  public chartOptions: Partial<ChartOptions>;

  constructor() {
    this.chartOptions = {
      series: [
        {
          name: "",
          data: [2, 10, 18, 22, 36, 15, 47, 75, 65, 19, 14, 2, 47, 42, 15]
        }
      ],
      chart: {
        height: 350,
        type: "line",
          toolbar: {
          show: false
        },
          zoom: {
          enabled: false
        }
      },
      stroke: {
        curve: "smooth"
      },
      grid: {
        show: false
      },
      xaxis: {
        labels: {
          show: false
        },
        axisBorder: {
          show: false
        }
      },
      yaxis: {
        show: false
      },
      fill: {
        type: "gradient",
        gradient: {
          shade: "dark",
          gradientToColors: ["#5156be"],
          shadeIntensity: 1,
          type: "horizontal",
          opacityFrom: 1,
          opacityTo: 1,
          stops: [100]
        }
      },
      tooltip: {
        enabled: true,
        followCursor: false,
        marker: {
          show: false
        },
        x: {
          show: false
        },
        y: {
          formatter: undefined,
          title: {
            formatter: (seriesName) => seriesName
          }
        }
      }
    };
  }
}

HTML

<div id="chart">
  <apx-chart
    [series]="chartOptions.series"
    [chart]="chartOptions.chart"
    [xaxis]="chartOptions.xaxis"
    [yaxis]="chartOptions.yaxis"
    [grid]="chartOptions.grid"
    [stroke]="chartOptions.stroke"
    [fill]="chartOptions.fill"
    [tooltip]="chartOptions.tooltip"
  ></apx-chart>
</div>

Answer №1

Turn off tooltip feature on x-axis

  tooltip: {
      enabled: false,
  },

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Managing data, functions, and tasks consistently in an Electron-based React application despite navigating through various components - how to do it effectively?

As a newcomer to React, I have encountered several challenges while trying to implement certain features. Currently, I am working on an application that consists of a grid view and details view. Initially, I used props and functions to manipulate the state ...

How to integrate a chips feature in Angular 4 using Typescript

Struggling to incorporate a chips component into my Angular web application, which comprises Typescript, HTML, and CSS files. After grappling with this for weeks without success, I have yet to find the right solution. To review my current code, you can a ...

Mysterious attributes of angular 6's <table mat-table> tag

This particular question regarding the angular material table has not been duplicated in any other discussions. Other similar questions pertain to angular versions 2-5, not version 6 The issue I am encountering is as follows: Can't bind to 'dat ...

Managing the appearance of one DOM element using another DOM element

Hey there, I'm currently working on an Angular Material tooltip implementation. When I hover over my span element, the tooltip appears. Now, I'm wondering how I can dynamically change the background color of the tooltip based on certain condition ...

Combining Blazor webassembly with Angular in a project

I am working on a Blazor webassembly web application and now I am looking to integrate it into an Angular project. After researching possible solutions, I have been unable to find any helpful information. Is there anyone out there who has experience comb ...

Triggering JSON schema validation event in React's Monaco Editor

I am interested in implementing custom JSON schema validation in my Monaco editor setup. Here is the current configuration: <MonacoEditor language="json" value={jsonValue} editorWillMount={(monaco) => { monaco.languages.json.jsonD ...

What is the best way to show and hide a tooltip message when the mouse enters and leaves an element?

I am facing an issue where the mouseleave event is not working as expected. Even though the mouseenter event works fine and displays a message, the message stays visible even after the pointer is removed. How can I fix this problem? .on("mouseenter" ...

Is it possible to establish a connection between Firebase Storage and HTML using TypeScript without Angular or React in IntelliJ?

My project goal is to create a functional login and register page using TypeScript. Currently, my code operates without a database, but I aim to implement Firebase for registering user credentials for easy login. I have only come across tutorials using F ...

Personalizing Mat-Select Dimension - Angular 11

As a newcomer to Angular/Angular Material, I'm unsure if I need to write this code myself or if it's already predefined in a certain manner. The issue I'm experiencing is with the dropdown of the mat-select. The panel that appears when you c ...

Do [(ngModel)] bindings strictly adhere to being strings?

Imagine a scenario where you have a radiobutton HTML element within an angular application, <div class="radio"> <label> <input type="radio" name="approvedeny" value="true" [(ngModel)]=_approvedOrDenied> Approve < ...

Efficiently integrating new API objects into an array of existing objects in React using Typescript without any duplicates

I am currently working on a custom hook that calls 16 subreddits at once in order to implement an infinite scroll feature. The goal is to update the array with new data when the URL page parameter changes and then map it. However, I am struggling to do thi ...

The exportAs property for matAutocomplete has not been specified

Issue Detected An error occurred with the directive "exportAs" set to "matAutocomplete" ("-label="Number" matInput [formControl]="myControl" [matAutocomplete]="auto"> I implemented code referenced from https://material.angular.io/components/auto ...

Distinguishing between type definitions for peer packages in TypeScript monorepos: a comparison of development and production

In my monorepo project, I utilize yarn workspaces and lerna, with all components written in TypeScript. Each module is housed in subfolders like packages/module-n, and every module contains its own package.json file with the following entries: "main": "di ...

The recent update to Angular 2 rc 1 router has caused some issues with the subscribe function not receiving

During Beta 17, the URL was passed to the subscriber in this manner: this.router.subscribe(function(url){ if( typeof url !== "undefined" ) { if( url.length > 0 ) { console.log('Handle router changes /' + url); ...

Angular 2 failing to recognize service variable changes initiated from component

Hello there, I'm currently facing a challenge with updating my component to reflect the correct value of a service variable whenever it changes. Here's what I have so far: Snippet from Component1 HTML {{icons | json}} Component1 Code icons: ...

Troubleshooting AngularJS2 and npm in WebStorm and Chrome for Windows users

Having completed the official Hero tutorial for AngularJs2 using Visual Studio Code, I decided to switch my coding and debugging setup to WebStorm+Chrome on Windows 10. To achieve this transition, I took the following steps: Installed Chrome JetBrains ...

Update name of an angular 2 component template

Is it possible to dynamically change the component template <FAQ-omni></FAQ-omni> based on a click event in the list? <div class="row"> <div class="col-xlg-4 col-xl-12 col-lg-12 col-md-7 col-sm-12 col-xs-12" title="FAQ" baCard ...

Tips on making Angular Material form controls dynamic

I am currently facing a dilemma where I am unsure how to dynamically set form controls. Below is the code snippet that illustrates my issue: <div [formGroup]="form"> <mat-form-field appearance="legacy"> <input matI ...

An issue detected in the index.esm.js file located in the firebase/firestore module within the node

I've encountered an issue while starting my angular project using the npm-start command. Here is the error I came across: ERROR in ./node_modules/firebase/firestore/dist/index.esm.js Module not found: Error: Can't resolve '@firebase/firest ...

Troubleshooting Date Errors in Typescript with VueJS

Encountering a peculiar issue with Typescript while attempting to instantiate a new Date object. <template> <div> Testing Date</div> </template> <script lang="ts"> import Vue from "vue"; export default Vue.extend({ name: ...