0

我在我的波斯语(波斯语)Moodle 网站中使用 Highchart。当我在波斯语页面中使用此图表时,它的图例和工具提示显示得很像此链接中的图像:

在带有波斯语数据的波斯语 Moodle 页面中使用 Highchart

我应该做什么??

当我在英语 Moodle 站点中使用具有相同数据的 Highchart 时,图表显示为: 在带有波斯语数据的英语 Moodle 页面中使用 Highchart

我称之为 highchart 的部分代码是这样的:

    <div id="container0" style="min-width: 400px;
                            height: 400px; 
                            margin: 0 auto;
                            margin-top: 2em" align="center">
</div>

我的高图代码:

 Highcharts.setOptions({ colors: color_items_array});
         var chart;
         $(document).ready(function() {

              chart = new Highcharts.Chart({
                chart: {
                    renderTo: conta,
                    type: type,
                    marginRight: 130,
                    marginBottom: 25
                },
                title: {
                    text: X_title,
                    x: -20 //center
                },
                subtitle: {
                    text: '',
                    x: -20
                },
                xAxis: {
                    categories: student_names2
                },
                yAxis: {
                    title: {
                        text: Y_title
                    },
                    plotLines: [{
                        value: 0,
                        width: 1,
                        color: '#080808'
                    }]
                },
                tooltip: {
                    formatter: function() {
                            return '<b>'+ this.series.name +'</b><br/>'+
                            this.x +': '+ this.y;
                    }
                },
                legend: {
                    layout: 'vertical',
                    align: 'right',
                    verticalAlign: 'top',
                    x: -10,
                    y: 100,
                    borderWidth: 0
                },

                series: seris_column2
            });
        });
4

0 回答 0