How to achieve the same thing in SPA Application ?
Your answer for this question will help me as well
Looking for your answer
Thanks Sir
Got it working
Will share you the link soonest
Thanks Much
it works perfectly
and i forgot to set the bearer there in the request
Hello Sir
I have done that perfectly. Here is the code for that
function payment_chart() {
abp.ajax({
url: '/Dashboard/paymentChart'
}).done(function (data) {
Morris.Donut({
element: 'payment_stats',
data: $.parseJSON(JSON.stringify(data)),
resize: true
});
});
return JSON.stringify("");
}
payment_chart();
Hello Hikalan,
Thanks for the answer
Is it possible to give a Morris Chart Example ?
I have tried like below but it is not getting refreshed
Morris.Donut({
element: 'payment_stats',
data: [
{ label: "Download Sales", value: 12 },
{ label: "In-Store Sales", value: 30 },
{ label: "Mail-Order Sales", value: 20 }
]
});
Morris.Donut({
element: 'transaction_stats',
data: _ticketService.getTransactionStats()
});
The first Morris is coming into the Screen but the second one is not coming. My Service is this like below
public MorrisOutputDto GetTransactionStats()
{
List<MorrisListDto> outputDtos = new List<MorrisListDto>();
outputDtos.Add(new MorrisListDto()
{
Label = "SALES",
Value = 190
});
outputDtos.Add(new MorrisListDto()
{
Label = "PURCHASE",
Value = 190
});
outputDtos.Add(new MorrisListDto()
{
Label = "NETS",
Value = 190
});
MorrisOutputDto outputDto = new MorrisOutputDto(outputDtos);
return outputDto;
}
Please correct me where i am wrong
Thanks mate
Thank you so much for the reply
Do we have any sample code in any of the Repository ?
It would be really helpful
Dear Hikalkan
Thanks for your reply.
For my case, I will have to create a API Controller by myself and use the APIauthorize attribute
Please clarify