Hi guys,
I have a some issues with the Stock chart, im trying to copy the functions on the live demo, but i can't:
That's my stock chart config :
<div class="row">
<div class="col-12">
<ejs-stockchart id="chart-container" [enablePeriodSelector]='enable' [primaryXAxis]='primaryXAxis'[primaryYAxis]='primaryYAxis' [title]='HistoricalTrendTitle' [crosshair]='crosshair' style="display:block;" width="100%">
<e-stockchart-series-collection>
<e-stockchart-series [dataSource]='FeeDetail.HistoricalTrend' type='Spline' xName='RPT_RUN_DT' yName='FEE_TGT_AMT' name='India' width=2></e-stockchart-series>
</e-stockchart-series-collection>
</ejs-stockchart>
</div>
</div>
That's the value of my objects:
this.primaryXAxis = {
valueType: 'DateTime',
crosshairTooltip: {enable: true}
};
this.primaryYAxis = {
labelFormat: 'n2', minimum: minvalue, maximum: maxvalue,
majorTickLines: { color: 'transparent', width: 0 },
crosshairTooltip: {enable: true}
};
this.crosshair = {
enable: true
};
I got this chart:
1.- I'm trying to set the chart to width: 100%, but i can't get this size, the chart always show me in this size ( 40-45 %).
2.- When i move the period selector like this way:
I lost a lot of values and i lost the Y axis label too.
And when i'm trying to put back the period selector, i can't get the chart before i move the period selector:
The chart just show me the values of 2018, but i don't know why i can't see the 2019 values too and the Y axis labels just disappear.
I have attached the file i am working with.
Best regards,
Attachment:
Response_e9cc4aed.zip