Missing the diagram-data in diagram example
I try to create an example demonstrates the diagram with local data https://ej2.syncfusion.com/vue/demos/?_ga=2.235293576.886809818.1556893866-257726880.1556893866#/material/diagram/local-data.html

Attachment: Local_Data_6b01d83f.zip
Attachment: Local_Data_6b01d83f.zip
SIGN IN To post a reply.
3 Replies
RT
Ramya Thirugnanam
Syncfusion Team
June 6, 2019 06:37 AM UTC
Hi Thin do,
Thanks for contacting Syncfusion support.
We have provided an JSON data source to render the local data sample in the below code example.
Code example:
|
let species = [
{
"Name": "Species",
"fillColor": "#3DD94A"
},
{
"Name": "Plants",
"Category": "Species"
},
{
"Name": "Fungi",
"Category": "Species"
},
{
"Name": "Lichens",
"Category": "Species"
},
{
"Name": "Animals",
"Category": "Species"
},
{
"Name": "Mosses",
"Category": "Plants"
},
{
"Name": "Ferns",
"Category": "Plants"
},
{
"Name": "Gymnosperms",
"Category": "Plants"
},
{
"Name": "Dicotyledens",
"Category": "Plants"
},
{
"Name": "Monocotyledens",
"Category": "Plants"
},
{
"Name": "Invertebrates",
"Category": "Animals"
},
{
"Name": "Vertebrates",
"Category": "Animals"
},
{
"Name": "Insects",
"Category": "Invertebrates"
},
{
"Name": "Molluscs",
"Category": "Invertebrates"
},
{
"Name": "Crustaceans",
"Category": "Invertebrates"
},
{
"Name": "Others",
"Category": "Invertebrates"
},
{
"Name": "Fish",
"Category": "Vertebrates"
},
{
"Name": "Amphibians",
"Category": "Vertebrates"
},
{
"Name": "Reptiles",
"Category": "Vertebrates"
},
{
"Name": "Birds",
"Category": "Vertebrates"
},
{
"Name": "Mammals",
"Category": "Vertebrates"
}
], |
Please find the help documentation for data source as below.
Regards,
Ramya T
TD
Thin D
June 8, 2019 05:42 AM UTC
Thanks, it is solved.
RT
Ramya Thirugnanam
Syncfusion Team
June 10, 2019 05:13 AM UTC
Hi Thin do,
Thanks for your update.
Regards,
Ramya T
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
TD Thin D
- Jun 5, 2019 02:35 PM UTC
- Jun 10, 2019 05:13 AM UTC