Skip to content

Instantly share code, notes, and snippets.

View spatney's full-sized avatar

Sachin Patney spatney

  • Microsoft
  • Redmond
View GitHub Profile
module powerbi.visuals {
export interface LineDataPoint {
date;
temperature: number
}
export interface SeriesViewModel {
name: string;
values: LineDataPoint[];
/*
* Power BI Visualizations
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the ""Software""), to deal
* in the Software without restriction, including without limitation the rights
module powerbi.visuals {
export class Meme implements IVisual {
public static capabilities: VisualCapabilities = {
suppressDefaultTitle: true,
objects: {
text: {
displayName: 'Properties',
properties: {
topText: {
displayName: 'Top Text',
@spatney
spatney / Thermometer.ts
Last active October 30, 2021 16:43
Custom Visual for Power BI: Thermometer
module powerbi.visuals {
export interface ViewModel {
value: number;
color?: string;
min?: number;
max?: number;
}
export class Thermometer implements IVisual {
public static capabilities: VisualCapabilities = {
module powerbi.visuals {
export interface ISvgComponent {
name;
attributes: [string[]];
children: ISvgComponent[];
}
export interface IInfoGraphData {
imageUris: string[];
categories: string[];