Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/333.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Amcharts需要默认为列而不是条_Java_Javascript_Jsp_Graph_Amcharts - Fatal编程技术网

Java Amcharts需要默认为列而不是条

Java Amcharts需要默认为列而不是条,java,javascript,jsp,graph,amcharts,Java,Javascript,Jsp,Graph,Amcharts,我正在使用Amcharts生成图形 <script type="text/javascript" src="/My-portlet/js/amcharts.js"></script> <script type="text/javascript" src="/My-portlet/js/raphael.js"></script> 选项定义如下 function setType() { if (document.getElementById

我正在使用Amcharts生成图形

<script type="text/javascript"
src="/My-portlet/js/amcharts.js"></script>
<script type="text/javascript"
src="/My-portlet/js/raphael.js"></script>
选项定义如下

 function setType() {
    if (document.getElementById("rb1").checked) {
        chart.rotate = true;
    } else {
        chart.rotate = false;
    }
    chart.validateNow();
}
身体

 <body style="background-color: #EEEEEE">
<div id="chartdiv" style="width: 100%; height: 400px;"></div>
<input type="radio" checked="true" name="group" id="rb1" onclick="setType()">
bars
<input type="radio" name="group" id="rb2" onclick="setType()"> columns
  </body>

酒吧
柱
默认值总是以条形出现。我想换个方向。 如何更改我的javascript


我找到了解决办法。可以通过移除此线路来实现

chart.rotate=true;

 <body style="background-color: #EEEEEE">
<div id="chartdiv" style="width: 100%; height: 400px;"></div>
<input type="radio" checked="true" name="group" id="rb1" onclick="setType()">
bars
<input type="radio" name="group" id="rb2" onclick="setType()"> columns
  </body>