Используя JQPlot, как я могу разместить легенду внутри диаграммы, но не переполнить контейнер графика? - PullRequest
0 голосов
/ 14 июня 2019

Используя JQPlot, как я могу разместить легенду за пределами графика потока контейнера графика?

                    <div ui-jq="plot" ng-if="m.metric.devices.length" ui-options="
                      {{m.metric.devices}},
                      {
                        series: { pie: { show: true, innerRadius: 0.5, stroke: { width: 0 }, label: { show: true, threshold: 0.1 } } },
                        grid: { hoverable: true, clickable: true, borderWidth: 0, color: '#ccc' },   
                        tooltip: true,
                        tooltipOpts: { content: '%s: %p.0% <br/> %y.0 devices', defaultTheme: false },
                        legend: { show: true, placement: 'outside',location:'n'}
                      }
                    " style="height:240px">
                </div>

пример

...