Skip to content

Instantly share code, notes, and snippets.

View MiaofeiWang's full-sized avatar

Miaofei Wang MiaofeiWang

  • Microsoft
View GitHub Profile
@MiaofeiWang
MiaofeiWang / Add Series.yaml
Created May 19, 2017 01:56
In scatter chart, add a new series and set data for it. - Shared with Script Lab
name: Add Series
description: 'In scatter chart, add a new series and set data for it.'
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(run);
async function run() {
@MiaofeiWang
MiaofeiWang / Delete Series.yaml
Created May 19, 2017 02:03
Delete a series - Shared with Script Lab
name: Delete Series
description: Delete a series
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(run);
async function run() {
@MiaofeiWang
MiaofeiWang / Add Series For Bubble.yaml
Created July 13, 2017 02:56
In scatter chart, add a new series and set data for it. - Shared with Script Lab
name: Add Series For Bubble
description: 'In scatter chart, add a new series and set data for it.'
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(run);
async function run() {
@MiaofeiWang
MiaofeiWang / Test series API.yaml
Created November 29, 2017 06:41
Shared with Script Lab
name: Test series API
description: ''
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
@MiaofeiWang
MiaofeiWang / Chart Series Demo (Simple).yaml
Last active January 30, 2018 07:27
Shared with Script Lab
name: Chart Series Demo (Simple)
description: ''
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |
$("#add-sample-data").click(() => tryCatch(addSampleData));
$("#create-empty-chart").click(() => tryCatch(createEmptyChart));
$("#add-series").click(() => tryCatch(addSeries));
@MiaofeiWang
MiaofeiWang / Chart trendlines test.yaml
Last active March 9, 2018 04:32
Add, get, and format trendlines in a chart. - Shared with Script Lab
name: Chart trendlines test
description: 'Add, get, and format trendlines in a chart.'
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |+
$("#setup").click(() => tryCatch(setup));
$("#add-trendline").click(() => tryCatch(addTrendline));
$("#get-trendline").click(() => tryCatch(getTrendline));
@MiaofeiWang
MiaofeiWang / Chart Legend Test.yaml
Last active March 9, 2018 05:23
Shared with Script Lab
name: Chart Legend Test
description: ''
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |+
$("#setup").click(() => tryCatch(setup));
$("#test-legend-property").click(() => tryCatch(testLegendProperty));
$("#test-legend-position").click(() => tryCatch(testLegendPosition));
@MiaofeiWang
MiaofeiWang / SetCategoryNamesBug.yaml
Last active January 30, 2018 08:17
Executes a basic Excel API call - Shared with Script Lab
name: SetCategoryNamesBug
description: Executes a basic Excel API call
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |
$("#create-empty-chart").click(() => tryCatch(createEmptyChart));
$("#run").click(() => tryCatch(run));
$("#test").click(() => tryCatch(test));
@MiaofeiWang
MiaofeiWang / Shape - Add Image.yaml
Last active August 28, 2018 04:30
Executes a basic Excel API call - Shared with Script Lab
name: Shape - Add Image
description: Executes a basic Excel API call
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |
$("#addImage").click(() => tryCatch(addImage));
$("#addSVG").click(() => tryCatch(addSVG));
@MiaofeiWang
MiaofeiWang / Chart get Image.yaml
Last active April 11, 2018 03:31
Executes a basic Excel API call - Shared with Script Lab
name: Chart get Image
description: Executes a basic Excel API call
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |-
$("#run").click(run);
function run() {