0
这是由highcharts为线和点生成的代码。我使用的是检查元素,点是他们应该在的位置,但他们似乎是透明的,或者像图表背后的东西。但代码看起来不错。Highcharts点和线缺失
<g class="highcharts-series-group" zIndex="3">
<g class="highcharts-series" clip-path="url(http://localhost:63540/admin/reports.aspx?type=like#highcharts-1)" visibility="visible" transform="translate(40,10)">
<path d="M 244 50.4 L 732 302.6" fill="none" stroke="rgb(0, 0, 0)" stroke-width="5" isShadow="true" stroke-opacity="0.05" transform="translate(1,1)"></path>
<path d="M 244 50.4 L 732 302.6" fill="none" stroke="rgb(0, 0, 0)" stroke-width="3" isShadow="true" stroke-opacity="0.1" transform="translate(1,1)"></path>
<path d="M 244 50.4 L 732 302.6" fill="none" stroke="rgb(0, 0, 0)" stroke-width="1" isShadow="true" stroke-opacity="0.15000000000000002" transform="translate(1,1)"></path>
<path d="M 244 50.4 L 732 302.6" fill="none" stroke="#4D4D4D" stroke-width="2"></path><path d="M 732 298.6 C 737.328 298.6 737.328 306.6 732 306.6 C 726.672 306.6 726.672 298.6 732 298.6 Z" fill="#4D4D4D" stroke="#FFFFFF" stroke-width="0.000001" zIndex="2000"></path>
<path d="M 244 46.4 C 249.328 46.4 249.328 54.4 244 54.4 C 238.672 54.4 238.672 46.4 244 46.4 Z" fill="#4D4D4D" stroke="#FFFFFF" stroke-width="0.000001"></path></g></g>
它可能会出现什么问题? 有趣的是,我已经复制了我的其他项目(即正在工作)的代码,只改变了数据。
这是编译的js代码:
var dates = ['1394/12/06','1394/12/11'];
after.push(function() {
chart = new Highcharts.Chart({
chart: {
height: 500,
backgroundColor:'#eee',
renderTo: 'chart',
defaultSeriesType: 'line',
// marginRight: 130,
//marginBottom: 150,
// marginTop: 20,
// events: { click: function() { startWait($('html')); document.location = 'price.aspx' } }
},
title: {
text: '',
x: -20 //center
},
subtitle: {
text: '',
x: -20
},
xAxis: {
categories: dates,
labels: {
rotation: 90,
formatter: function() {
return this.value;
},
y:40
}
},
yAxis: {
title: {
text: ''
},
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}],
labels: {
formatter: function() {
// return toFarsi(virgulize(this.value)) ;
}
}
},
tooltip: {
formatter: function() {
return "<b>" + this.y + "</b>";
}
},
legend: {
//enabled: false
},
series: [
{
name:' likes',
color:'#4D4D4D',
data: [2,1]
},
]
});
});
它似乎正常工作,因为是:http://jsfiddle.net/jlbriggs/54upcw1d/你可以在小提琴中重现问题吗? – jlbriggs