'Can c#/Razor work with DyGraph WITHOUT Javascript?

In this question: Previous DyGraph question

There is still the need to go to JavaScript to call DyGraph:

<script type="text/javascript">
g = new Dygraph(document.getElementById("readingGraph"), @data,{ labels: ["Sample Number", "Reading"] });
</script>

Is there anyway to remove JavaScript completely?

I would like a fully c# solution...



Solution 1:[1]

Ah, OBVIOUSSLY not. DyGraph is a javascript library. If you want to remove Javascript completely, you need to use a graph library that generates the graph on the server and sends the picture down to the client. Given that DyGraph is a javascript library - the obvious answer is no, it can not be used while at the same time totally disabling javascript.

Literally on the homepage it says: "dygraphs is a fast, flexible open source JavaScript charting library.".

Solution 2:[2]

If you want 100% C# and no Javascript, MudBlazor has some charting capabilities: https://mudblazor.com/components/barchart#api

As another answer states, "Given that DyGraph is a javascript library - the obvious answer is no, it can not be used while at the same time totally disabling javascript"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 TomTom
Solution 2 Andrew Rondeau