문제

Using angularjs-nvd3-directives how to show two (or more) pie charts side by side (instead of one under another)? Solutions should be declarative (ie. without using <table>).

Here is example http://plnkr.co/edit/A5B47PNyzBiS5oj0L8bp?p=preview.

<nvd3-pie-chart
    data="exampleDataPieChart"
    id="toolTipExample1"
    x="xFunction()"
    y="yFunction()"
    width="250"
    tooltips="true">
</nvd3-pie-chart>

<nvd3-pie-chart
    data="exampleDataPieChart"
    id="toolTipExample2"
    x="xFunction()"
    y="yFunction()"
    width="250"
    tooltips="true">
</nvd3-pie-chart>

enter image description here

도움이 되었습니까?

해결책

Checkout this modification of your plunk here

The idea is that you can and sometimes MUST set styles to custom directives

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top