Answer the question
In order to leave comments, you need to log in
How to convert png image to json?
Good afternoon! You need to make a hall scheme using the d3 js library. Vots has an example on the site itself bl.ocks.org/mbostock/5349951 There, the coordinates are driven into json. And I only know png image.
Do not tell me how to convert it to an image in json, or maybe there is an example of how to do it using svg?
Or maybe it's better to do it with another library? Just encountering this for the first time
Answer the question
In order to leave comments, you need to log in
Is it a prerequisite to use the d3 js library? If the condition is not mandatory, then you can not solve the problem head-on, but try to find an alternative solution. As I understand it, the task is to highlight various parts of the image on mouse hover? You can try to complete the task using this tool en.crazysquirrel.ru/tools/generators/map-area
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question