Highcharts

laravel chart doesn't get the data from the controller

一个人想着一个人 提交于 2019-12-13 03:49:04
问题 i'm trying to get data to chart from the database. this how i wanted the data from database get row count according to the month in the date in Laravel so i add that query. this is how controller looks like class DashboardController extends Controller { public function admin() { $suppliers = SupplierData::all(); $repcounter= SalesRep::count(); $totalsales= SalesData::count(); $totalrevenue=SalesData::sum('total_price'); $chartdata = SalesData::selectRaw('COUNT(*) as count, YEAR(dateOfSale)

Highcharts scatter external data

∥☆過路亽.° 提交于 2019-12-13 03:48:19
问题 I created document with highcharts scatter graph Highcharts.chart('container', { chart: { type: 'scatter', zoomType: 'xy' }, title: { text: '' }, subtitle: { text: '' }, xAxis: { title: { enabled: true, text: 'Date of entry' }, startOnTick: true, endOnTick: true, showLastLabel: true }, yAxis: { title: { text: 'Values' } }, legend: { layout: 'vertical', align: 'left', verticalAlign: 'top', x: 100, y: 70, floating: true, backgroundColor: (Highcharts.theme && Highcharts.theme

Fix space between columns and align labels on Highcharts

。_饼干妹妹 提交于 2019-12-13 03:48:07
问题 I am creating a column chart but I see too much space between the columns and I want to reduce the space between them. The labels on the xAxis are also not aligning. This is my fiddle: https://jsfiddle.net/q3atxr4c/1/. I added pointPadding , borderWidth and groupPadding . None of these are working. Is there a way for me to reduce space between the columns? Also all the values show up on my webpage (with navigation working) but are not on the fiddle so thats why I have a large div. I want to

How can we add chart context menu in highcharts-angular?

你离开我真会死。 提交于 2019-12-13 03:47:48
问题 Can someone please help me in this, actually in my highcharts-angular application need to be display chart context menu as show in below image. And I have gone through this https://www.highcharts.com/demo/pie-basic example but this whole code in javascript & Jquery. But here I need same functionality in highcharts-angular. Please find my sample code here https://stackblitz.com/edit/angular-s6h17i & please share your suggestions. Thanks in advance. 回答1: Highcharts context menu requires to

How to draw points with highcharts-react?

拈花ヽ惹草 提交于 2019-12-13 03:43:03
问题 I'm using highcharts-react , this a wrapper of highcharts. what I expect is like: https://jshare.com.cn/highmaps/hhhhAf I need a map , and draw some point in the map. quite simple for now. the difference is I want use a USA map. so far I got here: a pure USA map , and I try to add some points into the map . but it doesn't work. the code is here: import React from "react"; import { Component } from "react"; import { render } from "react-dom"; import Highcharts from "highcharts"; import HC_map

How can we customise the series data object property names “name” & “y” as part of highcharts-angular?

半世苍凉 提交于 2019-12-13 03:43:03
问题 Can anyone please help me on if there is anyway to customize the series data object property names as part of highcharts, actual proprty names are name & y . And when I am trying to change these property names as vendor & rating then piechart is not loading in browser I gone through many threads but not able to find solution as per my need.So, please help if there is anyway to update these property names with any code changes as I am getting such data format from rest api service as shown

change datalabels color in a HighCharts chart when hovering without updating the series

谁说我不能喝 提交于 2019-12-13 03:42:40
问题 The following code (built from the answer of a related question) changes the line color in a Highcharts line chart when hovering the series without using the heavier series.update method, but the code line which should change also the datalabels text color is broken. How can I achieve the desidered result? Highcharts.chart('container', { plotOptions: { series: { dataLabels: { enabled: true }, states: { hover: { enabled: false }, inactive: { enabled: false } }, pointStart: 2010, events: {

Highcharts Multi-Panes and Scrollbar

陌路散爱 提交于 2019-12-13 03:39:29
问题 How to add a scroll with multi-panes? Please look at the fiddle, 3rd pane is overlapping yAxis: [{ title: { text: 'Coffee Cups'}, height: '60%', offset: 0, lineWidth: 2 }, { title: { text: 'Hazelnut Cups' }, top: '65%', height: '60%', offset: 0, lineWidth: 2 }, { title: { text: 'Choco Cups' }, top: '130%', height: '60%', offset: 0, lineWidth: 2 }] Note: In my scenario, it can be 100 multi panes. 回答1: The sum of the heights of your y-axes is more than 100% which causes the overlapping. You

Highcharts fill area point interval issue

爱⌒轻易说出口 提交于 2019-12-13 03:34:49
问题 When I just draw the graph with 'spline', the yaxis interval is resaonable so the graph look's good. The code is as follows: chart: { type: 'spline' } But, when I change the type to 'area', the interval is changed too. Therefore, the graph look's bad. chart: { type: 'area' } How can I fix it without setting label's ' min ' and ' tickInterval ' I need this becuase if I set the label property, there would be followed bunch of works. 回答1: One way you can achieve this, is by using the following

Stacked Heat Map in highcharts

六月ゝ 毕业季﹏ 提交于 2019-12-13 03:25:42
问题 I would like to create a stacked heatmap. basically i have sub categories, I would want to show in a Heatmap. After searching I figured it is not possible to do. So I am wondering if it is possible to create a stacked heatmap instead where sub categories would be stacked on top to make a category. A mixture of bar chart and heat map. Please see the fiddle .. As a an example I tried to attain the objective with multiple series. As you can notice if the series have same values they just sit on