Hello Team ,
While I am using Export method on Chart than it is giving no label on chart and giving black background .
Below are some Snapshot for Reference ,
And what we want :
z
Code That we are using is Same as Demo Code for Export Method.
exportChart(){
this.chartComponent?.exportModule.export('PNG', 'export');
}
Please Reply As soon as Possible .
Hello ,
I have seen your sample , So in my issue we are using background and giving variable to it . which is used for Light as well as Black theme , So when i am using the variable {background='var(--element-base-1)'} So in this situation it is exporting Chart in such way :-
When we are using css class and Passing variable in that class than Export is Working fine but when we switching to dark theme on UI there is some issue with label , which is not visible . it is due to background = 'var(--element-ui-1)' which we are not using .
----------------------------------------------------------------------------------------
<ejs-chart #chartComponent primaryXAxis='PrimaryXAxis'
primaryYAxis='PrimaryYAxis' legendSettings='LegendSettings'
[isResponsive]="true"
[theme]='chartTheme' (loaded)='loadedChart($event)' (load)='loadChart($event)' background='var(--element-base-1)'>
Above code is giving black background to export as seen in image.
------------------------------------------------------------------------------------------
<ejs-chart class="background" #chartComponent primaryXAxis='PrimaryXAxis'
primaryYAxis='PrimaryYAxis' legendSettings='LegendSettings'
[isResponsive]="true [theme]='chartTheme' (loaded)='loadedChart($event)' (load)='loadChart($event)' >
<style>
.background { background-color : 'var(--element-base-1)' }
Above code is giving UI issue when theme changes to Dark mode ,
No labels for Chart .
-----------------------------------------------------------------------------------------------------------------------------------------------
So I just need to know that export method can access background value as variable is passed in it . and is there is any solution for this one .
Need Urgent Reply On this Scenario.