Skip to content

Commit bf49004

Browse files
kullJuladiletelf
andauthored
Full update + fixes (#121)
* Migrate from tslint to eslint * Update API to 5.11.0, tools to 5.5.1 and other packages * Update to latest d3, split d3 into submodules * Remove core-js, .travis.yml, azure-pipelines.yml * Add CI/CD and CodeQL * Fix eslint errors * Add Rendering API support * Fix less-loader options, fix running tests, migrate from puppeteer to playwright-chromium * Migrate to new formatting model * Update README.md to show valid images * Fix computing visual viewport * Add 'PlayButton' settings * Add 'title' text input to axis * Fix broken tests * Remove old settings without formatting model * Add report page tooltip support * Do not show play button when visual is not animated * Remove interactivity-utils, add context menu * Fix npm vulnerabilities * Add keyboard navigation * Add selection and highlight tests * Fix clicking on data points * Add animation for keyboard focus When in high contrast mode animation helps to see which dot is focused * Remove "coveralls" package * Remove commented lines and unnecessary class * Split lodash * Fix npm audit * Fix reverse animation * Update eslint * Fix test * Fix audit --------- Co-authored-by: Adilet Soronov <74559101+adiletelf@users.noreply.github.com>
1 parent 4f4ddb3 commit bf49004

26 files changed

Lines changed: 9627 additions & 12048 deletions

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will do a clean installation of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: build
5+
6+
on:
7+
push:
8+
branches: [ main, dev, certification ]
9+
pull_request:
10+
branches: [ main, dev, certification ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [18.x, 20.x]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- run: npm ci
28+
- run: npm audit
29+
continue-on-error: true
30+
- run: npm outdated
31+
continue-on-error: true
32+
- run: npm run eslint --if-present
33+
- run: npm run lint --if-present
34+
- run: npm run package
35+
- run: npm test
36+
env:
37+
CI: true
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ master ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ master ]
20+
schedule:
21+
- cron: '22 23 * * 1'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
language: [ 'javascript' ]
32+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33+
# Learn more:
34+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v2
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@v1
43+
with:
44+
languages: ${{ matrix.language }}
45+
# If you wish to specify custom queries, you can do so here or in a config file.
46+
# By default, queries listed here will override any specified in a config file.
47+
# Prefix the list here with "+" to use these queries and those in the config file.
48+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
49+
50+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51+
# If this step fails, then you should remove it and run the build manually (see below)
52+
- name: Autobuild
53+
uses: github/codeql-action/autobuild@v1
54+
55+
# ℹ️ Command-line programs to run using the OS shell.
56+
# 📚 https://git.io/JvXDl
57+
58+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59+
# and modify them (or add more) to build your code if your project
60+
# uses a compiled language
61+
62+
#- run: |
63+
# make bootstrap
64+
# make release
65+
66+
- name: Perform CodeQL Analysis
67+
uses: github/codeql-action/analyze@v1

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": "0.1.0",
3+
"configurations": [
4+
{
5+
"type": "chrome",
6+
"request": "attach",
7+
"name": "Karma Attach",
8+
"address": "localhost",
9+
"port": 9333,
10+
"pathMapping": {
11+
"/": "${workspaceRoot}/",
12+
"/base/": "${workspaceRoot}/"
13+
}
14+
}
15+
]
16+
}

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
## 2.1.0
2+
### Visual changes
3+
* Migrate to new formatting model
4+
* Add keyboard navigation
5+
* Add Rendering API support
6+
* Add report page tooltip support
7+
* Add context menu support
8+
9+
### Code improvements
10+
* Update API to 5.11.0, tools to 5.5.1 and other packages
11+
* Migrate to eslint from tslint
12+
* Update to latest d3, split d3 into submodules
13+
* Remove core-js, .travis.yml, azure-pipelines.yml
14+
* Add CI/CD and CodeQL
15+
* Fix less-loader options, fix running tests, migrate from puppeteer to playwright-chromium
16+
* Remove interactivity-utils
17+
* Add selection and highlight tests
18+
* Remove "coveralls" package
19+
120
## 2.0.3
221
* Fixed ticks formatting of fractional numbers
322

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# powerbi-visuals-linedotchart
2-
[![Build Status](https://travis-ci.org/Microsoft/powerbi-visuals-linedotchart.svg?branch=master)](https://travis-ci.org/Microsoft/powerbi-visuals-linedotchart) [![Coverage Status](https://coveralls.io/repos/github/Microsoft/powerbi-visuals-linedotchart/badge.svg?branch=master)](https://coveralls.io/github/Microsoft/powerbi-visuals-linedotchart?branch=master) [![Build Status](https://dev.azure.com/customvisuals/public/_apis/build/status/Microsoft.powerbi-visuals-linedotchart)](https://dev.azure.com/customvisuals/public/_build/latest?definitionId=1)
2+
[![build](https://github.com/microsoft/powerbi-visuals-linedotchart/actions/workflows/build.yml/badge.svg)](https://github.com/microsoft/powerbi-visuals-linedotchart/actions/workflows/build.yml) [![Coverage Status](https://coveralls.io/repos/github/Microsoft/powerbi-visuals-linedotchart/badge.svg?branch=master)](https://coveralls.io/github/Microsoft/powerbi-visuals-linedotchart?branch=master)
33

44
> The LineDot chart is an animated line chart with fun animated dots. Use the LineDot chart to engage your audience especially in a presentation context. The bubbles size can be dynamic based on data you provide. A counter is provided that you can use to show a running value as the chart animates. Format options are provided for Lines, Dots, and Animation.
55
6-
![linedotchart screenshot](https://az158878.vo.msecnd.net/marketing/Partner_21474836617/Product_42949680588/Asset_79376a97-0a89-48f3-9b3d-5396b4e5808b/LineDotChartscreenshot2.png)
6+
![svg](/assets/screenshot.png)
77
# Overview
88
The LineDot chart is an animated line chart with fun animated dots.
99

azure-pipelines.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)