융합 차트를 사용하여 다음 fiddle을 만들었습니다. 차트의 채우기 색상이 왜 투명한지 이해할 수 없습니다. 샘플에 대한Fusioncharts 원형 차트 채우기 색상 없음
하는 HTML 코드 조각 :
FusionCharts.ready(function() {
var demographicsChart = new FusionCharts({
type: 'pie2d',
renderAt: 'chart-container',
width: '450',
height: '300',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Age profile of website visitors",
"subCaption": "Last Year",
"startingAngle": "120",
"showLabels": "0",
"showLegend": "1",
"enableMultiSlicing": "0",
"slicingDistance": "15",
"showPercentValues": "1",
"showPercentInTooltip": "0",
"plotTooltext": "Age group : $label<br>Total visit : $datavalue",
"theme": "fint"
},
"data": [{
"label": "Teenage",
"value": "1250400"
}, {
"label": "Adult",
"value": "1463300"
}, {
"label": "Mid-age",
"value": "1050700"
}, {
"label": "Senior",
"value": "491000"
}]
}
});
demographicsChart.render();
});
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<!-- A pie3D Chart showing percentage visiting for different age groups last year in Harry's Supermart website. Attribute : # showPercentValues set to 1 to show the values w.r.t percentage of total visits. -->
<head>
<base href="/">
</head>
<div id="chart-container">FusionCharts will render here</div>
다음 차트 레벨을 사용하여 속성 :
"caption": "Age profile of website visitors",
"subCaption": "Last Year",
"startingAngle": "120",
"showLabels": "0",
"showLegend": "1",
"enableMultiSlicing": "0",
"slicingDistance": "15",
"showPercentValues": "1",
"showPercentInTooltip": "0",
"plotTooltext": "Age group : $label<br>Total visit : $datavalue",
"theme": "fint"
@Ayan에게 감사의 말을 전하고 문제를 지적하면 정말로 나를 구해 냈습니다. 이제 문제의 원인이 내 html의 기본 태그라는 것을 알고 있습니다. 이제 각도 컨트롤러에 다음 코드를 추가하여 angularjs를 구현할 수 있습니다. 'code eve.on ('raphael.new', function() { this.raphael._url = this.raphael._g.win. location.href.replace (/#.*?$/, ''); }); ' –
하하, 트레드를 엉망으로 만들었습니다. 여기에 새 소식, 사과드립니다. ( –