Jquery 更改语言时的HighChart问题
我有一个多语言网站(ar fr),我正在使用highchart类型的饼图,当我将语言从法语切换到阿拉伯语时,我得到了这个。有人能解决这个问题吗 我无法在yAxis上使用Jquery 更改语言时的HighChart问题,jquery,plugins,charts,highcharts,jquery-plugins,Jquery,Plugins,Charts,Highcharts,Jquery Plugins,我有一个多语言网站(ar fr),我正在使用highchart类型的饼图,当我将语言从法语切换到阿拉伯语时,我得到了这个。有人能解决这个问题吗 我无法在yAxis上使用设置为相反:true将其移动到右侧 在xAxis上设置反转:true,使其从右向左流动 因为我有一个类型饼图,所以数据只与系列有关 我的代码: <script type="text/javascript"> var char = Highcharts.chart('containerPopulation',
设置为相反:true
将其移动到右侧
在xAxis上设置反转:true
,使其从右向左流动
因为我有一个类型饼图,所以数据只与系列有关
我的代码:
<script type="text/javascript">
var char = Highcharts.chart('containerPopulation', {
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false,
type: 'pie'
},
title: {
text: ''
}
,
tooltip: {
headerFormat: '<span style="font-size:11px">{series.name}</span><br>',
pointFormat: '<span style="color:{point.color}">{point.name}</span>: <b>{point.y} / {point.percentage:.1f}%</b><br/>',
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
format: '<b>{point.name}</b>: {point.percentage:.1f} %',
style: {
color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
}
}
}
},
series: [{
name: '',
data: <?php echo $result ?>
}]
});
char.series[0].name = "";
$('.highcharts-credits').hide();
</script>
var char=Highcharts.chart('containerPopulation'{
图表:{
plotBackgroundColor:null,
plotBorderWidth:null,
影子:错,
键入:“馅饼”
},
标题:{
文本:“”
}
,
工具提示:{
headerFormat:“{series.name}
”,
pointFormat:“{point.name}:{point.y}/{point.percentage:.1f}%
”,
},
打印选项:{
馅饼:{
allowPointSelect:true,
光标:“指针”,
数据标签:{
启用:对,
格式:“{point.name}:{point.percentage:.1f}%”,
风格:{
颜色:(Highcharts.theme&&Highcharts.theme.ContractTextColor)| |“黑色”
}
}
}
},
系列:[{
名称:“”,
数据:
}]
});
char.series[0]。name=“”;
$('.highcharts credits').hide();
当你说你得到“这个”时,你指的是图像吗?你能更清楚地了解你看到的错误吗?我从来没有说过我有错误我的问题是当我从法语切换到阿拉伯语时,图形变得不平衡,如图中所示:左:fr,右:阿拉伯语。检查此项你能给出一个问题的实例吗?你的出发点可以是这把小提琴,这里就是问题的一个例子