質問

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