nylen / d3-process-map

Web application to illustrate the relationships between objects in a process using d3.js.
MIT License
416 stars 196 forks source link

Integrate with ASP.Net #2

Closed pakolia closed 9 years ago

pakolia commented 10 years ago

Can this tool can integrate with ASP.Net web services? I am planning to fetch data from SQL Server database.

Why there is config.json and object.jason two separate files? Do I need to update both if I get data via web services?

Thanks, Prashant

nylen commented 10 years ago

The idea is that objects.json contains the data, and config.json contains the rules needed for processing the data. There is some processing done to both files before they are sent to the browser:

There is logic in common.php that changes the objects from an array to a hash, checks for dependency errors, and adds the dependedOnBy and docs properties to each object. Go to http://nylen.tv/d3-process-map/json.php to see the results of this logic, which is what the client-side code in script.js is expecting for data.

The best way to do this is to re-use the HTML and JavaScript code, and re-write that PHP logic in ASP.NET.

pakolia commented 10 years ago

Thanks for the response.

Do you have very above files for very small subset of the data? I am having tough time understanding co-relation in the objecs.json and config.json files with current data since it's very huge and with many dependency. I am looking for simple sample json files to start with.

Cheers.

pakolia commented 10 years ago

Hi Nylen,

Is there a way to highlight two levels of information instead of just one level in this visualization?

Thanks,

nylen commented 10 years ago

No I don't have any simpler example files. If you have specific questions about the data format I can answer those. Otherwise you can try making smaller example files yourself.

See #3 for how you would change the code to highlight multiple levels of information.

nylen commented 9 years ago

Closing due to inactivity.