Skip to content

risk_matrix_points_plot not working #26

@RomaneBernard

Description

@RomaneBernard

When running the following code:

# Generate an empty 5x4 matrix
matrix_structure <- risk_matrix_structure(5,4,NA)

# Monetary risk for one asset
risk_coordinates <- risk_calculation(matrix_dimensions = matrix_structure,
                                     id = 1,
                                     chs = 4,
                                     cof = 18232,
                                     asset_type = "6.6/11kV Transformer (GM)")

risk_matrix_points_plot(matrix_structure,
                        dots_vector = risk_coordinates,
                        dot_radius = 4)

as per the Individual Asset Risk example (here - only replaced pof by chs and id = "Transformer1" by id = 1), I am running into the following issue:

Error: javascript is not defined
ReferenceError: javascript is not defined

I have tried manually adding the javascript files to my directory and I can access them, but I am then running into a second error:

d3.nest() is not a function

I have tried replacing with group() as per this comment but I am not familiar with javascript and this is not working either.

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    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