drilldown

Highcharts drilldown from bar-->pie or bar-->column

十年热恋 提交于 2020-01-07 08:01:08
问题 I need to create a bar-chart with a pie-chart drill down. Everything works fine in all browsers but Do you need more explanations? function activities(params) { //params coming from statistics controller var title_activities = params['title_activities'], source_activities = params['source_activities'], link_activities = params['link_activities'], credits_databasis_str_activities = params['credits_databasis_str_activities'], activities_category_names = params['activities_category_names'],

How to make highcharts boxplot with drilldown?

[亡魂溺海] 提交于 2020-01-05 08:32:11
问题 I am new with highcharts and javascript. I am trying to make a boxplot with drilldown. Chart type 'boxplot' requires data to be a array of 5 element(min 1st-quatile median 3st-quatile max), as follows: data: [ [760, 801, 848, 895, 965], [733, 853, 939, 980, 1080], [834, 836, 864, 882, 910] ] While drilldown requires that data should have many members, including "drilldown" member, as follow: data: [{ name: 'namey', y: 49.9, drilldown: 'tokyo 1' }, { y: 71.5, name: 'namex', drilldown: 'tokyo 2

How to make highcharts boxplot with drilldown?

点点圈 提交于 2020-01-05 08:31:36
问题 I am new with highcharts and javascript. I am trying to make a boxplot with drilldown. Chart type 'boxplot' requires data to be a array of 5 element(min 1st-quatile median 3st-quatile max), as follows: data: [ [760, 801, 848, 895, 965], [733, 853, 939, 980, 1080], [834, 836, 864, 882, 910] ] While drilldown requires that data should have many members, including "drilldown" member, as follow: data: [{ name: 'namey', y: 49.9, drilldown: 'tokyo 1' }, { y: 71.5, name: 'namex', drilldown: 'tokyo 2

Highcharts - Dynamically change chart type with on radio buttons click

北城余情 提交于 2020-01-05 08:27:30
问题 I am trying to change my working highcharts into different type of chart using 4 radio buttons : column , bar , pie , line . Here is my working chart: $(function () { // Create the chart var options = { chart: { events: { drilldown: function (e) { if (!e.seriesOptions) { var chart = this, drilldowns = <?php echo json_encode($array) ?>, series = drilldowns[e.point.name]; // Show the loading label chart.showLoading('Loading ...'); setTimeout(function () { chart.hideLoading(); chart

Tree search with Lucene

落爺英雄遲暮 提交于 2020-01-04 12:47:21
问题 I have a taxonomy index that describes a tree structure. When performing a query I want to get the number of hits for multiple categories (not necessarily in the same level of the tree). For example, given the following list of paths: [Root/Cat1, Root/Cat1/Cat12, Root/Cat3] I want to obtain the number of hits for each of these three categories. I've been looking for a solution and I know that is possible to make a tree request and then get the results by calling .getSubResults() (as it is

How to differentiate categories in highcharts drilldown?

江枫思渺然 提交于 2019-12-25 16:44:10
问题 I want to make the chart like the picture below. I made the chart below by typing data manually. Picture 1 But, I want to take data from database, but I don't know how to categorize the xAxis. I have codes like this: controller $faculty = (new \yii\db\Query()) ->select(['Faculty']) ->from('facultyin2011') ->limit(10) ->column(); $age1 = (new \yii\db\Query()) ->select(['lessthan25']) ->from('facultyin2011') ->limit(10) ->column(); $age1 = array_map('floatval', $age1); foreach ($age1 as $key =>

How to differentiate categories in highcharts drilldown?

Deadly 提交于 2019-12-25 16:43:21
问题 I want to make the chart like the picture below. I made the chart below by typing data manually. Picture 1 But, I want to take data from database, but I don't know how to categorize the xAxis. I have codes like this: controller $faculty = (new \yii\db\Query()) ->select(['Faculty']) ->from('facultyin2011') ->limit(10) ->column(); $age1 = (new \yii\db\Query()) ->select(['lessthan25']) ->from('facultyin2011') ->limit(10) ->column(); $age1 = array_map('floatval', $age1); foreach ($age1 as $key =>

Swift 3 passing var through a series of Segues / ViewControllers

拥有回忆 提交于 2019-12-25 09:27:13
问题 I am having an unexpected problem passing var's through Segue to a VC. Worked fine in Objective C and early version of Swift. Here is what I am doing: I'm extracting a set of variables from a downloaded json file to populate a TableViewCell, then to pass the Cell displayed variables plus the other vars relating to that Cell selection to a DetailViewController. This is through prepare for Segue, setting up vars on the DetialViewController. Then destination.myVarToSend = myVar ..... That all

UIWebView & NavigationController crashes while loading

跟風遠走 提交于 2019-12-25 04:01:33
问题 I have very weird problem I build a simple app with UIWebView and NavigationController but the problem is when the seconds page is loading and I go back to the first page and visited a link the APP crashes and the console says nothing Here is my code on finish loading -(void)webViewDidFinishLoad:(UIWebView *)aWebView { NSString *str = [aWebView stringByEvaluatingJavaScriptFromString:@"document.title"]; self.navigationItem.title = str; [navigationActivity stopAnimating]; } and this for the web

AnyChart Treemap drillChange current event out of sync with getDrilldownPath

ぐ巨炮叔叔 提交于 2019-12-25 03:44:14
问题 With Anychart 8.3+ I am using the TreeMap chart.listen('drillChange') listener to obtain a clicked element's information. Note: I needed to use e.current.get('name') as shown in an example, instead of e.currentTarget as per Treemap listen() documentation. However the getDrillDownPath() value seems to be one event-click behind. Why is this? chart.listen("drillChange", function(e){ // get the drilldown path and convert it to a string var text = printPath(chart.getDrilldownPath()); // set the