Вопрос

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