Skip to content

Instantly share code, notes, and snippets.

View PBI-DataVizzle's full-sized avatar
💭
Shizzle my Vizzle 🤓

Imran Haq PBI-DataVizzle

💭
Shizzle my Vizzle 🤓
View GitHub Profile
// This gist containt useful pieces of M Query code
let
P1 = "myParameter1",
P2 = "myParameter2",
#"Header" = Binary.ToText(Text.ToBinary(#"UserName"&":" & #"Password")),
#"BaseURL" = "https://yourwebpage.com/api/3",
#"DaysLogic" =
if
#"JIRA Days" = null
then
""
@PBI-DataVizzle
PBI-DataVizzle / DuBois_Challenge3.json
Created February 20, 2024 18:38
DuBois_Challenge3
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "Entry for challenge 03 in the 2024 DVS Du Bois Visualization Contest.",
"usermeta": {
"developedBy": "Madison Giammaria",
"LinkedIn": "https://www.linkedin.com/in/madison-giammaria-58463b33",
"email": "[email protected]"
},
"padding": 5,
"background": "transparent",
@PBI-DataVizzle
PBI-DataVizzle / DuBois_Challenge3.json
Created February 20, 2024 18:38
DuBois_Challenge3
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "Entry for challenge 03 in the 2024 DVS Du Bois Visualization Contest.",
"usermeta": {
"developedBy": "Madison Giammaria",
"LinkedIn": "https://www.linkedin.com/in/madison-giammaria-58463b33",
"email": "[email protected]"
},
"padding": 5,
"background": "transparent",
@PBI-DataVizzle
PBI-DataVizzle / light_dark_spec.json
Created February 9, 2024 18:52
light_dark_spec
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "Use params to enable light/dark mode",
"usermeta": {
"developedBy": "Madison Giammaria",
"LinkedIn": "https://www.linkedin.com/in/madison-giammaria-58463b33",
"email": "[email protected]"
},
"view": {"stroke": {"expr": "gridColor"}},
"background": {"expr": "mode === 'light' ? '#fff' : '#000'"},
@PBI-DataVizzle
PBI-DataVizzle / vega-dubois-map.json
Created February 9, 2024 18:44
vega-dubois-map
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "Entry for challenge 01 in the 2024 DVS Du Bois Visualization Contest.",
"usermeta": {
"developedBy": "Madison Giammaria",
"LinkedIn": "https://www.linkedin.com/in/madison-giammaria-58463b33",
"email": "[email protected]"
},
"title": {
"text": "NEGRO POPULATION OF GEORGIA BY COUNTIES.",
@PBI-DataVizzle
PBI-DataVizzle / multi-layered-donut.json
Created January 31, 2024 08:27
multi-layered-donut
{
"data": {
"values": [
{
"Medium": "Television",
"Advertising Share": 65.8,
"Medium-Type": "Digital"
},
{
"Medium": "Internet",
@PBI-DataVizzle
PBI-DataVizzle / multiple_datasets_vl.json
Created January 13, 2024 10:51
multiple_datasets_vl
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.2.0.json",
"config": {"view": {"continuousHeight": 300, "continuousWidth": 400}},
"hconcat": [
{
"data": {
"name": "Dataset1",
"format": {"type": "json", "property": "data.histogram"},
"url": "https://gist.githubusercontent.com/hemagso/f7b4381be43b34ece4d8aa78c936c7d5/raw/0bae0177b8a2a5d33e23c0d164d4439d248aa9ff/mock,json"
},
@PBI-DataVizzle
PBI-DataVizzle / binds_example.json
Created January 8, 2024 22:18
scatter_plot_binds_example
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "data/cars.json"},
"params": [
{"name": "toggleOrigin", "bind": {"input": "checkbox"}},
{"name": "paintbrush", "select": {"type": "point", "on": "pointerover"}},
{"name": "brush", "select": "interval"},
{
"name": "opacityVar",
"value": 50,
@PBI-DataVizzle
PBI-DataVizzle / table_hconcat_vl.json
Last active December 27, 2023 23:56
table_hconcat_vl
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"values": [
{"item": "A", "value": 0.85},
{"item": "AA", "value": 98},
{"item": "AB", "value": 361},
{"item": "AC", "value": 1750},
{"item": "C", "value": 92650},
{"item": "D", "value": 150000},