Skip to main content
14-Alexandrite
October 16, 2023
Question

Modify custom widget D3 range chart

  • October 16, 2023
  • 1 reply
  • 770 views

Hi

I want to modify custom widget which is D3 range chart. The already customized widget have x axis and 2 y axis now i want to add again 2 y axis in the chart. I am new to custom widget, i didn't create custom widget before. And i don't have idea how to create it.
I already have D3range chart custom widget extension file but i have to modify it.

Can anyone please help to modify the extension file. I don't know where i have to modify it.
sharing the links for extension file and the code please check and help me with this.
d3.js - Multiple Y axis and paths in different scales - Stack Overflow


GitHub - ptc-iot-sharing/D3RangeChart: A Thingworx widget that implements a chart that is highly configurable at runtime using D3.

 

 

1 reply

17-Peridot
October 30, 2023

@ru_01 ,

 

It is not clear to me what you are asking about the D3js library. The D3js library is not used by the core ThingWorx product.  If you have multiple extensions which use the D3js library, it is recommended that they use the same version. 

The <extension>.runtime.js file needs to include the library from the files delivered with your extension. That could would look something like:
 

<FileResource description="" file="d3.min.js" isDevelopment="false" isRuntime="true" type="JS"/>

 

This would be a general outline.

 

If you can provide more information or upload your extension, I will see if I can offer suggestions.

 

Good Luck

Peter