Skip to content

Instantly share code, notes, and snippets.

View gmurray81's full-sized avatar

gmurray81

View GitHub Profile
@gmurray81
gmurray81 / chart.json
Created August 5, 2022 01:31
chart with embedded data demo
{
"export": false,
"descriptions": {
"content": {
"type": "DataChart",
"name": "chart",
"axes": [
{
"type": "CategoryXAxis",
"name": "xAxis",
@gmurray81
gmurray81 / grid.json
Created August 5, 2022 01:20
example of grid in editor
{
"strings": {
"legendTitle": "Renewable Electricity Generated"
},
"descriptions": {
"content": {
"type": "DataGrid",
"name": "chart",
"dataSourceRef": "WorldCities"
}
{
"strings": {
"legendTitle": "Renewable Electricity Generated"
},
"descriptions": {
"legend": {
"type": "Legend",
"name": "Legend",
"orientation": "Horizontal"
},
@gmurray81
gmurray81 / App.tsx
Created December 15, 2021 22:37
How to override the RestVirtualDataSource settings in order to target a Rest service with different parameter expectations, in this case Json:API specification
import React from 'react';
import logo from './logo.svg';
import './App.css';
import { IgrDataGrid } from 'igniteui-react-grids';
import { RestVirtualDataSource } from './RestVirtualDataSource/RestVirtualDataSource';
import { ListSortDirection, SortDescriptionCollection } from 'igniteui-react-core';
// let rds = new RestVirtualDataSource();
// rds.baseUri = "https://localhost:5001";
// rds.entitySet = "salespeople";
@gmurray81
gmurray81 / MainPage.xaml
Created December 17, 2020 14:32
Infragistics Ultimate UI for Uno Platform Chart Sample
<Page
x:Class="ChartSample.Uno.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ChartSample.Uno"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:igc="using:Infragistics.Controls.Charts"
mc:Ignorable="d">
<Page.Resources>
@gmurray81
gmurray81 / Workaround.cs
Created November 14, 2017 22:33
Workaround an issue with converting from geo coords to window coords.
using Infragistics;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows;
using System;
using Infragistics.Controls.Charts;
namespace LoadShapeFiles
{
public partial class MainWindow : Window
@gmurray81
gmurray81 / skiasharp_buffer_init.cs
Created May 17, 2017 15:00
Create a zeroed SkiaSharp buffer.
public class Demo
{
public static SKSurface CreateSurface(int width, int height)
{
// create a block of unmanaged native memory for use as the Skia bitmap buffer.
// unfortunately, this may not be zeroed in some circumstances.
IntPtr buff = System.Runtime.InteropServices.Marshal.AllocCoTaskMem(width * height * 4);
byte[] empty = new byte[width * height * 4];
@gmurray81
gmurray81 / IrisView.Android.cs
Last active April 10, 2017 16:08
Using C# and SkiaSharp to Delight and Amaze (Across Platforms)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Infragistics;
using Infragistics.Controls.Charts;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using Infragistics.Controls.Charts;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;