Skip to content
This repository was archived by the owner on Jul 29, 2019. It is now read-only.
This repository was archived by the owner on Jul 29, 2019. It is now read-only.

Graph3d setOptions throws exception setData does not exist #3251

@DaveWare

Description

@DaveWare

I just started trying to use Graph3d yesterday and used the available example code 10_styling.html to reproduce the excpetion. Btw; nice work! I changed the example to call setBarWidth() when x or y width is changed.

I cloned the latest repository and am using the distribution:

I wanted to allow the users to dynamically set the value range for coloring. When I pass updated options to graph3d.setOptions() an exception is throw from DataGroup.reload line 13850 that says DataGroup does not have a setData method. I changed reload to take a graph3d as an argument and called graph3d.setData(this.dataTable) rather than this.setData(dataTable). This seems to have the correct behavior. The graph updates and has the new value range. Or in the case of the example code below the correct bar width.

Not sure if this would be the proper fix as I have just started looking at your component.

Object doesn't support property or method 'set

  /**
   * Reload the data
   */
  DataGroup.prototype.reload = function () {
    if (this.dataTable) {
      this.setData(this.dataTable);
    }
  };

10_styling.html
10_styling.txt

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions