aurelia-ui-toolkits / aurelia-syncfusion-bridge

27 stars 21 forks source link

Issue passing percentage to ej-chart size #61

Closed stuartbloom closed 7 years ago

stuartbloom commented 7 years ago

I have a chart that I want to remain within its parent. I have the following markup:

    <div style="width: 50%; height: 50%; border: solid 1px" >
        <ej-chart id="container" e-legend.bind="legend" e-title.bind="title" e-size.bind="{ height: '100%', width: '100%'' }"
            e-common-series-options.bind="commonSeriesOptions">
            <ej-series e-data-source.bind="ExpendituresList" e-x-name="xName" e-y-name="yName">
            </ej-series>
        </ej-chart>
    </div>

unfortunately when I use a % for the size bind, nothing gets rendered, and if I click on the charts container I get exceptions in the console: image

I would expect to be able to use a % since the documentation states it can be either a percentage or pixels.

Or am I doing anything wrong?