Example #1
0
 // TODO: clean this
 public static ValueTask <bool> SetChartData <TItem, TOptions>(IJSRuntime runtime, string id, ChartType type, ChartData <TItem> data, TOptions options, string dataJsonString, string optionsJsonString)
 {
     return(runtime.InvokeAsync <bool>("blazoriseCharts.setChartData", id, ToChartTypeString(type), ToChartDataSet(data), options, dataJsonString, optionsJsonString));
 }
Example #2
0
        public virtual async ValueTask Initialize <TItem, TOptions>(DotNetObjectReference <ChartAdapter> dotNetObjectReference, object eventOptions, ElementReference canvasRef, string canvasId, ChartType type, ChartData <TItem> data, TOptions options, string dataJsonString, string optionsJsonString, object optionsObject)
        {
            var moduleInstance = await Module;

            await moduleInstance.InvokeVoidAsync("initialize",
                                                 dotNetObjectReference,
                                                 eventOptions,
                                                 canvasRef,
                                                 canvasId,
                                                 ToChartTypeString( type ),
                                                 ToChartData( data ),
                                                 options,
                                                 dataJsonString,
                                                 optionsJsonString,
                                                 optionsObject);
        }
Example #3
0
 public static ValueTask Initialize <TItem, TOptions>(IJSRuntime runtime, DotNetObjectReference <ChartAdapter> dotNetObjectReference, bool hasClickEvent, bool hasHoverEvent, string canvasId, ChartType type, ChartData <TItem> data, TOptions options, string dataJsonString, string optionsJsonString, object optionsObject)
 {
     return(runtime.InvokeVoidAsync("blazoriseCharts.initialize",
                                    dotNetObjectReference,
                                    hasClickEvent,
                                    hasHoverEvent,
                                    canvasId,
                                    ToChartTypeString(type),
                                    ToChartDataSet(data),
                                    options,
                                    dataJsonString,
                                    optionsJsonString,
                                    optionsObject));
 }
Example #4
0
 // TODO: clean this
 public static ValueTask <bool> UpdateChart <TItem, TOptions>(IJSRuntime runtime, string canvasId, ChartData <TItem> data, TOptions options, string dataJsonString, string optionsJsonString)
 {
     return(runtime.InvokeAsync <bool>("blazoriseCharts.update", canvasId, ToChartDataSet(data), options, dataJsonString, optionsJsonString));
 }