apexcharts

How to show legend tooltip when hover on legend series in ApexCharts.js

≡放荡痞女 提交于 2020-08-05 10:12:27
问题 Currently there is no such feature in apexchart v3.19.3, does anyone have a work around for this? 回答1: I end up created a custom legend tooltip to be shown when hovered on legend series. below are the steps for this solution: create a function to append legend tooltip html and css into to the chart's legend series container. set this function to be called in these two apexcharts events: charts.events.updated() and charts.events.mounted() , this is to ensure the legend tooltip template is

How to show legend tooltip when hover on legend series in ApexCharts.js

 ̄綄美尐妖づ 提交于 2020-08-05 10:11:50
问题 Currently there is no such feature in apexchart v3.19.3, does anyone have a work around for this? 回答1: I end up created a custom legend tooltip to be shown when hovered on legend series. below are the steps for this solution: create a function to append legend tooltip html and css into to the chart's legend series container. set this function to be called in these two apexcharts events: charts.events.updated() and charts.events.mounted() , this is to ensure the legend tooltip template is

How to remove the horizontal lines of chart & its axis lines in angular?

走远了吗. 提交于 2020-07-13 07:14:30
问题 Following is an angular app with graphs made of apex charts https://codesandbox.io/s/apx-column-distributed-d3ns7?from-embed How can I remove the horizontal lines of that chart & its axis lines (so that this looks much cleaner) this.chartOptions = { series: [ { name: "distibuted", data: [21, 22,] } ], chart: { height: 350, type: "bar", events: { click: function(chart, w, e) { // console.log(chart, w, e) } } }, colors: [ "#008FFB", "#00E396", ], plotOptions: { bar: { columnWidth: "45%",

How to remove the horizontal lines of chart & its axis lines in angular?

心已入冬 提交于 2020-07-13 07:13:22
问题 Following is an angular app with graphs made of apex charts https://codesandbox.io/s/apx-column-distributed-d3ns7?from-embed How can I remove the horizontal lines of that chart & its axis lines (so that this looks much cleaner) this.chartOptions = { series: [ { name: "distibuted", data: [21, 22,] } ], chart: { height: 350, type: "bar", events: { click: function(chart, w, e) { // console.log(chart, w, e) } } }, colors: [ "#008FFB", "#00E396", ], plotOptions: { bar: { columnWidth: "45%",

using state value in state data for apex charts within react app

ぃ、小莉子 提交于 2020-04-18 06:32:21
问题 I've reduced/mapped my database query to return an array like this docCalories: [123,456,789,345,234,678,234] which is how I want it I'm setting this to a state variable called maxCalories at the end of that function where I'm mapping. The problem is, I'm trying to use the value of maxCalories as another state variable which is used for an apex-chart but it's not working and I'm wondering if it's because my chart series value is in the state along with maxCalories while the function that maps

React Apexchart is not taking its parent height when setting height 100%

孤街醉人 提交于 2020-04-16 08:34:44
问题 I am working on react-apexcharts and trying to set height 100 percent of the chart but it is not accepting height of its parents instead showing its min-height of 445px .I could not understand what is happening even after setting height 100% like this, chart: { height: "100%", }, Here is my full code import React from "react"; import ReactApexChart from "react-apexcharts"; class ApexChart extends React.Component { constructor(props) { super(props); this.state = { series: [ { name: 'member',