Skip to content

Commit

Permalink
Remove nvd3
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi committed Mar 19, 2024
1 parent 93cfedb commit 72c8b7d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion airflow/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@
"jshint": "^2.13.4",
"lodash": "^4.17.21",
"moment-timezone": "^0.5.43",
"nvd3": "^1.8.6",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-icons": "^4.9.0",
Expand Down
11 changes: 0 additions & 11 deletions airflow/www/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,17 +655,6 @@ def get_attr_renderer():
}


def get_chart_height(dag):
"""
Use the number of tasks in the DAG to approximate the size of generated chart.
Without this the charts are tiny and unreadable when DAGs have a large number of tasks).
Ideally nvd3 should allow for dynamic-height charts, that is charts that take up space
based on the size of the components within.
"""
return 600 + len(dag.tasks) * 10


class UtcAwareFilterMixin:
"""Mixin for filter for UTC time."""

Expand Down
4 changes: 0 additions & 4 deletions airflow/www/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,6 @@ const config = {
// we'll have the dependencies imported within the custom JS
new CopyWebpackPlugin({
patterns: [
{
from: "node_modules/nvd3/build/*.min.*",
flatten: true,
},
{
from: "node_modules/d3/d3.min.*",
flatten: true,
Expand Down
5 changes: 0 additions & 5 deletions airflow/www/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9020,11 +9020,6 @@ nth-check@^2.0.1:
dependencies:
boolbase "^1.0.0"

nvd3@^1.8.6:
version "1.8.6"
resolved "https://registry.yarnpkg.com/nvd3/-/nvd3-1.8.6.tgz#2d3eba74bf33363b5101ebf1d093c59a53ae73c4"
integrity sha512-YGQ9hAQHuQCF0JmYkT2GhNMHb5pA+vDfQj6C2GdpQPzdRPj/srPG3mh/3fZzUFt+at1NusLk/RqICUWkxm4viQ==

nwsapi@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7"
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ dependencies = [
"pyjwt>=2.0.0",
"python-daemon>=3.0.0",
"python-dateutil>=2.3",
"python-nvd3>=0.15.0",
"python-slugify>=5.0",
# Requests 3 if it will be released, will be heavily breaking.
"requests>=2.27.0,<3",
Expand Down

0 comments on commit 72c8b7d

Please sign in to comment.