Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amcharts(serial) dimensions are not working. #234

Open
karanvyas3 opened this issue May 15, 2019 · 0 comments
Open

amcharts(serial) dimensions are not working. #234

karanvyas3 opened this issue May 15, 2019 · 0 comments

Comments

@karanvyas3
Copy link

Hi,
I'm facing the issue with the serial amcharts. when we click on the dimensions(below of the graph) I am unable to remove the bars on the graph.

Here is the code I'm trying:

AmCharts.addInitHandler( function ( chart ) {
if ($(chart.div).data('height') == 'dynamic')
{

  var categoryWidth = 40;
  var minHeight = 200;
  var chartHeight = categoryWidth * chart.dataProvider.length;
  chart.div.style.height = minHeight + chartHeight + 'px';
}

}, ['serial'] );

this.initConfig = function() {
var default_config = {
"type": "serial",
"categoryField": "category",
"pathToImages": "http://cdn.amcharts.com/lib/3/images/",
"addClassNames": true,
"categoryAxis": {
"gridPosition": "start",
"labelsEnabled": false,
"tickLength": 0,
'gridColor': '#A9A9A9'
},
"graphs": [
{
"fillAlphas": 1,
"balloonText": "[[category]]: [[value]]%",
"type": "column",
"valueField": "column-1",
"lineAlpha": 0
}
],
"valueAxes": [
{
"id": "ValueAxis-1",
"title": this.yLabel,
'maximum': this.yMax,
'minimum': 0,
'gridColor': '#A9A9A9'
}
],
"balloon": {
"fixedPosition": false
},
"titles": [
{
"size": 15,
"text": reportType
}
],
"dataProvider": data
};
$.extend(true, this.config, default_config, this.options);
};

_.bindAll(this, 'initConfig');

this.initConfig();

this.chart = AmCharts.makeChart(this.$el.attr('id'), this.config);
return this.chart;
};

This is the Serial amcharts.

image

Could you please help me on this issue.

Thanks Advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant