walterf25

Expert
Licensed User
Longtime User
While searching for a library that can be used to display data on a chart using ABMaterial framework, I came across this post here I tried the example provided and it seems to work fine for my purpose, however I need to be able to change the width and height of the chart, I tried changing the custom class shown in that post but I can't seem to get the chart to change its size, has anyone else used this library, if so is it possible to accomplish what i'm trying to do?

ABMComp_Build:
    Dim html As String = $"<!-- Pre HTML definition-->
            <style>
                canvas {
                    border: 0px dotted red;
                }
                chart-container {
                      position: relative;
                    margin: auto;
                    height: 100vh;
                    width: 100vw;
                }
            </style>
            <div id="${internalID}chart" class="chart-container">
                <canvas id="${internalID}canvas"></canvas>
            </div>
            <script>
                 var _${internalID};
                var speed = 250;
                ${valuevars}
                var ${internalID}labels = [];
            </script>
            "$

Specifically I tried changing the height and width values in the above code but doesn't seem to make a difference.

Any suggestions anyone?

Thanks,
Walter
 
Top