Showing 1 of 1 files from the diff.

@@ -170,6 +170,38 @@
Loading
170 170
        return msg
171 171
172 172
173 +
class String(ValueIndicator):
174 +
    """
175 +
    The String indicator renders a string with a title.
176 +
    """
177 +
178 +
    default_color = param.String(default='black')
179 +
180 +
    font_size = param.String(default='54pt')
181 +
182 +
    title_size = param.String(default='18pt')
183 +
184 +
    value = param.String(default=None)
185 +
186 +
    _rename = {}
187 +
188 +
    _widget_type = HTML
189 +
190 +
    def _process_param_change(self, msg):
191 +
        msg = super()._process_param_change(msg)
192 +
        font_size = msg.pop('font_size', self.font_size)
193 +
        title_font_size = msg.pop('title_size', self.title_size)
194 +
        name = msg.pop('name', self.name)
195 +
        value = msg.pop('value', self.value)
196 +
        color = msg.pop('default_color', self.default_color)
197 +
        text = f'<div style="font-size: {font_size}; color: {color}">{value}</div>'
198 +
        if self.name:
199 +
            title_font_size = msg.pop('title_size', self.title_size)
200 +
            text = f'<div style="font-size: {title_font_size}; color: {color}">{name}</div>\n{text}'
201 +
        msg['text'] = escape(text)
202 +
        return msg
203 +
204 +
173 205
class Gauge(ValueIndicator):
174 206
    """
175 207
    A Gauge represents a value in some range as a position on
Files Coverage
panel 86.09%
dodo.py 0.00%
setup.py 0.00%
Project Totals (147 files) 85.69%
6642.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
6641.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
6647.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
6643.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
1
coverage:
2
  status:
3
    project:
4
      default:
5
        target: auto
6
        threshold: 0.1
7
        base: auto
8

9
comment:
10
  require_changes: yes
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading