It is not only a fully functional graph visualization library, but also an explorer of data relationships.
!!!###!!!title=How to Reference VStory in Projects——VisActor/VStory tutorial documents!!!###!!!!!!###!!!description=In the [How to Get VStory](./How_to_Get_VStory) section, we introduced how to get VStory. This section will explain how to reference VStory under these acquisition methods.!!!###!!!
How to Reference VStory in Your Project
In the How to Get VStory section, we introduced how to get VStory. This section will explain how to reference VStory under these acquisition methods.
CDN Usage
After we get the VStory file from cdn, we can add it to the <script> tag in the HTML file:
Note: When using the CDN method to import, pay attention to the way VStory is referenced:
const story = new VStory.story(dsl, { dom: 'chart' });
NPM Usage
After we install @visactor/vstory into the project through the npm method, we can use it in the following way: