Skip to content

Commit 9a2e23a

Browse files
committed
OTWO-7677 Removed download functionality from charts
1 parent 7e499bd commit 9a2e23a

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

app/assets/javascripts/charts.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ var Charts = {
148148
width: 950,
149149
lang: {
150150
thousandsSep: ','
151+
},
152+
exporting: {
153+
enabled: false
154+
},
155+
credits: {
156+
enabled: false
151157
}
152158
})
153159

app/assets/stylesheets/api/custom.sass

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,6 +1691,8 @@
16911691
width: 100%
16921692
height: 100%
16931693

1694+
html.dark
1695+
#cve-cvss3, #cvss3, #cve-cvss3-mobile, #cvss3-mobile
16941696
.highcharts-axis-labels text,
16951697
.highcharts-axis-title text
16961698
fill: #d1d5db !important

app/decorators/analysis/code_history_chart.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ def initialize(analysis)
99
end
1010

1111
def data
12-
series_and_range_data(@defaults) end
12+
series_and_range_data(@defaults)
13+
end
1314

1415
def data_for_lines_of_code
1516
data.deep_merge(ANALYSIS_CHARTS_OPTIONS['no_auxillaries'])
1617
.deep_merge(ANALYSIS_CHARTS_OPTIONS['lines_of_code'])
17-
end
18+
end
1819

1920
private
2021

0 commit comments

Comments
 (0)