testio-tailwind 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.circleci/config.yml +217 -0
- package/.dockerignore +4 -0
- package/.eleventy.js +57 -57
- package/Dockerfile +27 -0
- package/LICENSE +21 -21
- package/README.md +43 -43
- package/icon-classes-extractor.js +29 -29
- package/index.html +399 -478
- package/package.json +66 -66
- package/src/_data/navigation.json +44 -44
- package/src/_data/site.js +12 -12
- package/src/_includes/card_popover.haml +7 -7
- package/src/_includes/example-header-customer.pug +99 -99
- package/src/_includes/example-header-manager.njk +53 -53
- package/src/_includes/example-header-tester.njk +99 -99
- package/src/_includes/example-header.njk +50 -50
- package/src/_includes/page-with-sidebar-nocode.njk +46 -46
- package/src/_includes/page-with-sidebar.njk +46 -46
- package/src/_includes/page.njk +38 -38
- package/src/_layouts/base.njk +83 -83
- package/src/_layouts/email-template.njk +90 -90
- package/src/_layouts/page-example-customer.njk +74 -74
- package/src/_layouts/page-example-manager.njk +74 -74
- package/src/_layouts/page-example-tester.njk +75 -75
- package/src/_layouts/page-example.njk +83 -83
- package/src/assets/images/Cirro-App-Defaultimage.svg +25 -25
- package/src/assets/images/arrow-down.svg +13 -13
- package/src/assets/images/arrow-left.svg +13 -13
- package/src/assets/images/arrow-right.svg +13 -13
- package/src/assets/images/arrow-thick-left.svg +13 -13
- package/src/assets/images/arrow-thick-right.svg +13 -13
- package/src/assets/images/arrow-up.svg +13 -13
- package/src/assets/images/at-sign.svg +12 -12
- package/src/assets/images/attachment-fallbackimage.svg +19 -19
- package/src/assets/images/attachment.svg +8 -8
- package/src/assets/images/bell-smile-xl.svg +18 -18
- package/src/assets/images/blocked.svg +7 -7
- package/src/assets/images/bug-chat-xl.svg +15 -15
- package/src/assets/images/bug-deceased-xl.svg +15 -15
- package/src/assets/images/bug-reproduction.svg +14 -14
- package/src/assets/images/bug-sad-xl.svg +13 -13
- package/src/assets/images/bug-search-xl.svg +18 -18
- package/src/assets/images/bug-sleeping-xl.svg +14 -14
- package/src/assets/images/bug-smile-xl.svg +9 -9
- package/src/assets/images/calendar.svg +15 -15
- package/src/assets/images/caret-down-centered.svg +6 -6
- package/src/assets/images/caret-down.svg +11 -11
- package/src/assets/images/caret-left-centered.svg +6 -6
- package/src/assets/images/caret-left.svg +6 -6
- package/src/assets/images/caret-right-centered.svg +6 -6
- package/src/assets/images/caret-right.svg +6 -6
- package/src/assets/images/caret-up-centered.svg +6 -6
- package/src/assets/images/caret-up.svg +11 -11
- package/src/assets/images/check-circle-filled-white.svg +9 -9
- package/src/assets/images/check-circle-filled.svg +12 -12
- package/src/assets/images/check-circle.svg +7 -7
- package/src/assets/images/check-selectable-items.svg +11 -11
- package/src/assets/images/check-thick-outline.svg +11 -11
- package/src/assets/images/check-thick.svg +6 -6
- package/src/assets/images/check.svg +17 -17
- package/src/assets/images/checkbox-background-black.svg +6 -6
- package/src/assets/images/checkbox-background-sm.svg +12 -12
- package/src/assets/images/checkbox-background-white.svg +6 -6
- package/src/assets/images/checkbox-background.svg +6 -6
- package/src/assets/images/checkbox-sm-checked.svg +11 -11
- package/src/assets/images/circle-empty-white.svg +6 -6
- package/src/assets/images/circle-sm-filled.svg +6 -6
- package/src/assets/images/clock.svg +12 -12
- package/src/assets/images/cross-circle-filled.svg +6 -6
- package/src/assets/images/cross-circle.svg +7 -7
- package/src/assets/images/cross-thick.svg +15 -15
- package/src/assets/images/cross.svg +7 -7
- package/src/assets/images/exclamation-circle-filled.svg +11 -11
- package/src/assets/images/exclamation-circle.svg +12 -12
- package/src/assets/images/feature-check.svg +9 -9
- package/src/assets/images/feature-cross.svg +10 -10
- package/src/assets/images/feature-draft.svg +14 -14
- package/src/assets/images/feature.svg +8 -8
- package/src/assets/images/file-image-plus-lg.svg +19 -19
- package/src/assets/images/file-image-plus-xl.svg +20 -20
- package/src/assets/images/format-bold.svg +11 -11
- package/src/assets/images/format-code.svg +12 -12
- package/src/assets/images/format-heading.svg +11 -11
- package/src/assets/images/format-indent-decrease.svg +11 -11
- package/src/assets/images/format-indent-increase.svg +11 -11
- package/src/assets/images/format-italic.svg +11 -11
- package/src/assets/images/format-link.svg +11 -11
- package/src/assets/images/format-list-bulleted.svg +17 -17
- package/src/assets/images/format-list-numbered.svg +17 -17
- package/src/assets/images/format-mark.svg +13 -13
- package/src/assets/images/format-quote.svg +17 -17
- package/src/assets/images/format-strikethrough.svg +11 -11
- package/src/assets/images/forward.svg +11 -11
- package/src/assets/images/google_signin.svg +22 -22
- package/src/assets/images/info-circle-cirro.svg +21 -21
- package/src/assets/images/info-circle-ux.svg +21 -21
- package/src/assets/images/lock.svg +15 -15
- package/src/assets/images/logo-mobile-cloud.svg +12 -12
- package/src/assets/images/logo-testio/testio_horizontal_black.svg +14 -14
- package/src/assets/images/logo-testio/testio_horizontal_icon_black.svg +25 -25
- package/src/assets/images/logo-testio/testio_horizontal_icon_purple_black.svg +27 -27
- package/src/assets/images/logo-testio/testio_horizontal_icon_purple_white.svg +25 -25
- package/src/assets/images/logo-testio/testio_horizontal_icon_white.svg +25 -25
- package/src/assets/images/logo-testio/testio_horizontal_purple_black.svg +9 -9
- package/src/assets/images/logo-testio/testio_horizontal_purple_white.svg +14 -14
- package/src/assets/images/logo-testio/testio_horizontal_purpleteal_black.svg +21 -21
- package/src/assets/images/logo-testio/testio_horizontal_purpleteal_white.svg +19 -19
- package/src/assets/images/logo-testio/testio_horizontal_teal_black.svg +14 -14
- package/src/assets/images/logo-testio/testio_horizontal_teal_white.svg +14 -14
- package/src/assets/images/logo-testio/testio_horizontal_tealpurple_black.svg +21 -21
- package/src/assets/images/logo-testio/testio_horizontal_tealpurple_white.svg +21 -21
- package/src/assets/images/logo-testio/testio_horizontal_white.svg +14 -14
- package/src/assets/images/logo-testio/testio_symbol_black_round.svg +11 -11
- package/src/assets/images/logo-testio/testio_symbol_purple.svg +15 -15
- package/src/assets/images/logo-testio/testio_symbol_purpleteal_round.svg +18 -18
- package/src/assets/images/logo-testio/testio_symbol_purpleteal_square.svg +18 -18
- package/src/assets/images/logo-testio/testio_symbol_teal.svg +15 -15
- package/src/assets/images/logo-testio/testio_symbol_tealpurple_round.svg +18 -18
- package/src/assets/images/logo-testio/testio_symbol_tealpurple_square.svg +18 -18
- package/src/assets/images/logo-testio/testio_symbol_white_round.svg +11 -11
- package/src/assets/images/logo-testio/testio_typo_black.svg +11 -11
- package/src/assets/images/logo-testio/testio_typo_white.svg +11 -11
- package/src/assets/images/logo-testio/testio_vertical_purpleteal_black.svg +19 -19
- package/src/assets/images/logo-testio/testio_vertical_purpleteal_white.svg +19 -19
- package/src/assets/images/logo-testio/testio_vertical_tealpurple_black.svg +19 -19
- package/src/assets/images/logo-testio/testio_vertical_tealpurple_white.svg +19 -19
- package/src/assets/images/message-feedback.svg +10 -10
- package/src/assets/images/message-question-filled.svg +6 -6
- package/src/assets/images/message-question.svg +8 -8
- package/src/assets/images/message.svg +11 -11
- package/src/assets/images/question-circle.svg +24 -24
- package/src/assets/images/radio-checked-black.svg +5 -5
- package/src/assets/images/redo.svg +7 -7
- package/src/assets/images/remove.svg +6 -6
- package/src/assets/images/search.svg +11 -11
- package/src/assets/images/seat.svg +14 -14
- package/src/assets/images/section.svg +8 -8
- package/src/assets/images/sendmessage.svg +15 -15
- package/src/assets/images/speaker.svg +10 -10
- package/src/assets/images/test-archived.svg +12 -12
- package/src/assets/images/test-automation.svg +8 -8
- package/src/assets/images/test-check.svg +9 -9
- package/src/assets/images/test-ended.svg +9 -9
- package/src/assets/images/test-failed.svg +10 -10
- package/src/assets/images/test-initialized.svg +10 -10
- package/src/assets/images/test-locked.svg +15 -15
- package/src/assets/images/test-plus.svg +11 -11
- package/src/assets/images/test-promoted.svg +9 -9
- package/src/assets/images/test-running.svg +9 -9
- package/src/assets/images/test-stopped.svg +17 -17
- package/src/assets/images/test.svg +8 -8
- package/src/assets/images/testcase.svg +10 -10
- package/src/assets/images/triangle-centered-down.svg +12 -12
- package/src/assets/images/triangle-centered-left.svg +12 -12
- package/src/assets/images/triangle-centered-right.svg +12 -12
- package/src/assets/images/triangle-centered-up.svg +12 -12
- package/src/assets/images/triangle-down.svg +5 -5
- package/src/assets/images/triangle-up.svg +5 -5
- package/src/assets/images/undo.svg +7 -7
- package/src/assets/images/verify-exclamation.svg +11 -11
- package/src/assets/scripts/app.js +150 -150
- package/src/assets/scripts/modules/colors.js +10 -10
- package/src/assets/scripts/modules/echarts_area.js +94 -94
- package/src/assets/scripts/modules/echarts_donut.js +85 -85
- package/src/assets/scripts/modules/echarts_exampledata.js +105 -105
- package/src/assets/scripts/modules/echarts_exampleseries.js +146 -146
- package/src/assets/scripts/modules/echarts_gauge.js +74 -74
- package/src/assets/scripts/modules/echarts_horizontal.js +80 -80
- package/src/assets/scripts/modules/echarts_legend.js +12 -12
- package/src/assets/scripts/modules/echarts_vertical.js +80 -80
- package/src/assets/stylesheets/app.css +77 -76
- package/src/assets/stylesheets/components/actionbar.css +41 -41
- package/src/assets/stylesheets/components/alerts.css +50 -50
- package/src/assets/stylesheets/components/banner_card.css +56 -56
- package/src/assets/stylesheets/components/buttons.css +192 -192
- package/src/assets/stylesheets/components/cards.css +148 -148
- package/src/assets/stylesheets/components/chat.css +265 -265
- package/src/assets/stylesheets/components/checkboxes_radiobuttons.css +173 -173
- package/src/assets/stylesheets/components/customer/customer_header.css +97 -97
- package/src/assets/stylesheets/components/customer/customer_productcards.css +212 -212
- package/src/assets/stylesheets/components/customer/customer_sidebar.css +76 -76
- package/src/assets/stylesheets/components/devices.css +77 -83
- package/src/assets/stylesheets/components/drawer.css +99 -99
- package/src/assets/stylesheets/components/dropdown.css +92 -92
- package/src/assets/stylesheets/components/emptystate_message.css +41 -41
- package/src/assets/stylesheets/components/form_card.css +20 -20
- package/src/assets/stylesheets/components/form_grid.css +11 -11
- package/src/assets/stylesheets/components/forms.css +106 -106
- package/src/assets/stylesheets/components/header.css +220 -220
- package/src/assets/stylesheets/components/iconfont.css +3303 -3303
- package/src/assets/stylesheets/components/icons.css +142 -142
- package/src/assets/stylesheets/components/images.css +27 -27
- package/src/assets/stylesheets/components/layout.css +37 -82
- package/src/assets/stylesheets/components/list_item.css +285 -281
- package/src/assets/stylesheets/components/lists.css +67 -67
- package/src/assets/stylesheets/components/loading_spinner.css +104 -104
- package/src/assets/stylesheets/components/manager/manager_header.css +50 -50
- package/src/assets/stylesheets/components/manager/manager_sidebar.css +76 -76
- package/src/assets/stylesheets/components/markdown_trix_styles.css +200 -200
- package/src/assets/stylesheets/components/metasidebar.css +56 -56
- package/src/assets/stylesheets/components/metrics.css +12 -12
- package/src/assets/stylesheets/components/modals.css +105 -105
- package/src/assets/stylesheets/components/notifications.css +154 -154
- package/src/assets/stylesheets/components/popover.css +120 -120
- package/src/assets/stylesheets/components/progress.css +69 -69
- package/src/assets/stylesheets/components/radio_tabs.css +59 -59
- package/src/assets/stylesheets/components/reset.css +26 -26
- package/src/assets/stylesheets/components/resultmodule.css +132 -132
- package/src/assets/stylesheets/components/search.css +110 -110
- package/src/assets/stylesheets/components/sections.css +97 -97
- package/src/assets/stylesheets/components/select.css +50 -50
- package/src/assets/stylesheets/components/select2.css +252 -252
- package/src/assets/stylesheets/components/selectable_token.css +223 -223
- package/src/assets/stylesheets/components/sidebar.css +480 -480
- package/src/assets/stylesheets/components/splitview.css +307 -304
- package/src/assets/stylesheets/components/tables.css +108 -108
- package/src/assets/stylesheets/components/tabs.css +121 -121
- package/src/assets/stylesheets/components/tags.css +28 -28
- package/src/assets/stylesheets/components/task_issue_item.css +78 -78
- package/src/assets/stylesheets/components/test_header.css +167 -0
- package/src/assets/stylesheets/components/test_item.css +89 -89
- package/src/assets/stylesheets/components/tester/tester_cards.css +143 -143
- package/src/assets/stylesheets/components/tester/tester_header.css +37 -37
- package/src/assets/stylesheets/components/tester/tester_sidebar.css +92 -92
- package/src/assets/stylesheets/components/toggleswitch.css +118 -118
- package/src/assets/stylesheets/components/tom_select.css +186 -186
- package/src/assets/stylesheets/components/trix_editor.css +174 -174
- package/src/assets/stylesheets/components/typography.css +81 -81
- package/src/assets/stylesheets/components/uploads.css +194 -194
- package/src/assets/stylesheets/components/user_item.css +57 -57
- package/src/assets/stylesheets/designsystem-styles.css +81 -81
- package/src/assets/stylesheets/postcss.config.js +16 -16
- package/src/assets/stylesheets/tailwind.config.js +331 -331
- package/src/humans.txt.njk +10 -10
- package/src/index.pug +16 -16
- package/src/pages/buttons/block.haml +39 -39
- package/src/pages/buttons/buttons-lg.haml +20 -20
- package/src/pages/buttons/buttons-sm.haml +41 -41
- package/src/pages/buttons/buttons-xl.haml +23 -23
- package/src/pages/buttons/buttons.haml +58 -58
- package/src/pages/buttons/buttons_input.haml +39 -39
- package/src/pages/buttons/dropdown-menu.haml +73 -73
- package/src/pages/buttons/index.njk +7 -7
- package/src/pages/buttons/info_popover.haml +32 -32
- package/src/pages/buttons/link-with-icon.haml +13 -13
- package/src/pages/buttons/square-buttons.haml +55 -55
- package/src/pages/charts/area.haml +215 -215
- package/src/pages/charts/bar_horizontal.haml +335 -335
- package/src/pages/charts/bar_vertical.haml +391 -391
- package/src/pages/charts/donut.haml +269 -269
- package/src/pages/charts/gauge.haml +214 -214
- package/src/pages/charts/index.njk +6 -6
- package/src/pages/ci.pug +8 -8
- package/src/pages/colors.pug +147 -147
- package/src/pages/components/alerts.haml +31 -31
- package/src/pages/components/banner_cards.haml +45 -45
- package/src/pages/components/cards.haml +111 -111
- package/src/pages/components/cards_customer.haml +487 -487
- package/src/pages/components/cards_fixedwidth.haml +135 -135
- package/src/pages/components/cards_iconheader.haml +57 -57
- package/src/pages/components/cards_tester.haml +159 -159
- package/src/pages/components/chat_window.haml +240 -240
- package/src/pages/components/comments_bug_preview.haml +29 -29
- package/src/pages/components/comments_chatmessages.haml +229 -229
- package/src/pages/components/descriptionlist.haml +47 -47
- package/src/pages/components/devices.haml +115 -115
- package/src/pages/components/drawer.haml +49 -49
- package/src/pages/components/drawer_filter.haml +76 -76
- package/src/pages/components/emptystate.haml +15 -15
- package/src/pages/components/index.njk +6 -6
- package/src/pages/components/issue-item.haml +18 -18
- package/src/pages/components/listitem_with_footer.haml +208 -208
- package/src/pages/components/listitems.haml +136 -136
- package/src/pages/components/listitems_badge.haml +36 -36
- package/src/pages/components/listitems_collapsable.haml +117 -117
- package/src/pages/components/listitems_nested.haml +50 -50
- package/src/pages/components/listitems_selectable.haml +59 -59
- package/src/pages/components/listitems_white.haml +82 -82
- package/src/pages/components/loading_spinner.haml +11 -11
- package/src/pages/components/metasidebar.haml +13 -13
- package/src/pages/components/modal_details.haml +68 -68
- package/src/pages/components/notification_center.haml +48 -48
- package/src/pages/components/notifications.haml +42 -42
- package/src/pages/components/profilethumb.haml +27 -27
- package/src/pages/components/progress.haml +23 -23
- package/src/pages/components/resultmodule.haml +150 -150
- package/src/pages/components/resultmodule_testcase.haml +125 -125
- package/src/pages/components/section_collapsable.haml +24 -24
- package/src/pages/components/splitview_item.haml +111 -111
- package/src/pages/components/splitview_item_collapsable.haml +65 -65
- package/src/pages/components/tables.haml +57 -57
- package/src/pages/components/tables_linked.haml +29 -29
- package/src/pages/components/tags.haml +12 -12
- package/src/pages/components/task_item.haml +33 -33
- package/src/pages/components/test_item.haml +119 -119
- package/src/pages/components/tester_levels.haml +70 -70
- package/src/pages/components/user_item.haml +49 -49
- package/src/pages/examples/layout-actionbar.haml +267 -267
- package/src/pages/examples/layout-basic.haml +28 -28
- package/src/pages/examples/layout-chat.haml +327 -327
- package/src/pages/examples/layout-customer.haml +189 -189
- package/src/pages/examples/layout-form-sidebar-actionbar-metasidebar.haml +312 -312
- package/src/pages/examples/layout-manager.haml +98 -98
- package/src/pages/examples/layout-metasidebar.haml +269 -269
- package/src/pages/examples/layout-sidebar-actionbar-metasidebar.haml +308 -308
- package/src/pages/examples/layout-sidebar-actionbar.haml +308 -308
- package/src/pages/examples/layout-sidebar.haml +296 -296
- package/src/pages/examples/layout-tester.haml +105 -105
- package/src/pages/examples/splitview-testcases.haml +477 -477
- package/src/pages/examples/splitview.haml +389 -389
- package/src/pages/forms/checkboxes.haml +64 -64
- package/src/pages/forms/checkboxes_devices.haml +45 -45
- package/src/pages/forms/form-addon.haml +16 -16
- package/src/pages/forms/form-card.haml +36 -36
- package/src/pages/forms/form-grid.haml +16 -16
- package/src/pages/forms/form_grid_narrow.haml +18 -18
- package/src/pages/forms/forms.haml +22 -22
- package/src/pages/forms/index.njk +6 -6
- package/src/pages/forms/radiobuttons.haml +50 -50
- package/src/pages/forms/rating_scale.haml +62 -62
- package/src/pages/forms/search.haml +71 -71
- package/src/pages/forms/select2.haml +72 -72
- package/src/pages/forms/select_native.haml +74 -74
- package/src/pages/forms/selectable_token.haml +49 -49
- package/src/pages/forms/selectable_token_browsers.haml +66 -66
- package/src/pages/forms/selectable_token_lg.haml +49 -49
- package/src/pages/forms/selectable_token_xl.haml +49 -49
- package/src/pages/forms/textarea.haml +24 -24
- package/src/pages/forms/toggle-buttons.haml +94 -94
- package/src/pages/forms/toggle-switch.haml +31 -31
- package/src/pages/forms/tomselect.haml +76 -76
- package/src/pages/forms/trix_editor.pug +10 -10
- package/src/pages/forms/uploads.pug +101 -101
- package/src/pages/icons/bug-icons.haml +75 -75
- package/src/pages/icons/index.njk +83 -83
- package/src/pages/icons/marketingicons.haml +15 -15
- package/src/pages/icons/status-icons.haml +38 -38
- package/src/pages/layout/app_layout.haml +27 -27
- package/src/pages/layout/index.njk +6 -6
- package/src/pages/layout/max_width.haml +49 -49
- package/src/pages/layout/spacing.haml +30 -30
- package/src/pages/navigation/header-manager.haml +73 -73
- package/src/pages/navigation/header-tester.haml +100 -100
- package/src/pages/navigation/header.haml +76 -76
- package/src/pages/navigation/header_customer.haml +77 -77
- package/src/pages/navigation/header_tester_epam.haml +108 -108
- package/src/pages/navigation/index.njk +7 -7
- package/src/pages/navigation/product_dropdown.haml +65 -65
- package/src/pages/navigation/radio_tabs.haml +22 -22
- package/src/pages/navigation/sidebar-manager.haml +46 -46
- package/src/pages/navigation/sidebar-tester-elements.haml +105 -105
- package/src/pages/navigation/sidebar-tester-seatlimitation.haml +108 -108
- package/src/pages/navigation/sidebar-tester.haml +75 -75
- package/src/pages/navigation/sidebar.haml +46 -46
- package/src/pages/navigation/sidebar_collapsables.haml +136 -136
- package/src/pages/navigation/sidebar_customer.haml +146 -146
- package/src/pages/navigation/tabnavigation.haml +12 -12
- package/src/pages/navigation/tabnavigation_actions.haml +21 -21
- package/src/pages/navigation/tabnavigation_pills.haml +12 -12
- package/src/pages/navigation/test-header-tester.haml +178 -0
- package/src/pages/typography/index.njk +7 -7
- package/src/pages/typography/link_with_icon.haml +12 -12
- package/src/pages/typography/linked_icon.haml +10 -10
- package/src/pages/typography/markdown.md +112 -112
- package/src/pages/typography/section_header.haml +25 -25
- package/src/pages/typography/section_header_actions.haml +59 -59
- package/src/pages/typography/text_with_icon.haml +12 -12
- package/src/pages/typography/trix_styles.haml +127 -127
- package/src/pages/typography/typography.haml +51 -51
- package/src/sitemap.xml.njk +13 -13
- package/src/static/app.compiled.css +536 -208
- package/src/static/app.compiled.css.map +1 -1
- package/src/static/browserconfig.xml +9 -9
- package/src/static/site.webmanifest +3 -3
- package/utils/collections.js +29 -29
- package/utils/filters.js +11 -11
- package/utils/markdown.js +9 -9
- package/utils/shortcodes.js +6 -6
- package/utils/transforms.js +19 -19
- package/webpack.config.js +24 -24
|
@@ -1,392 +1,392 @@
|
|
|
1
|
-
---
|
|
2
|
-
tags: charts
|
|
3
|
-
title: Bar chart vertical
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
.div
|
|
7
|
-
%details.listitem.mb-md
|
|
8
|
-
%summary.listitem-header
|
|
9
|
-
.listitem-title
|
|
10
|
-
%span.icon.icon-format-code.mr-xs
|
|
11
|
-
Initialize vertical bar chart
|
|
12
|
-
.listitem-metrics
|
|
13
|
-
.listitem-actions
|
|
14
|
-
.btn.collapse-btn
|
|
15
|
-
.listitem-content
|
|
16
|
-
.listitem-subheadline HTML
|
|
17
|
-
.listitem-card
|
|
18
|
-
%code .echarts-container#element-id
|
|
19
|
-
.listitem-subheadline app.js
|
|
20
|
-
.listitem-card
|
|
21
|
-
%pre.code.break-spaces
|
|
22
|
-
:plain
|
|
23
|
-
import { createChartVertical } from './modules/echarts_vertical';
|
|
24
|
-
createChartVertical (target, targetDataY, targetDataX, itemWidth);
|
|
25
|
-
.listitem-subheadline echarts_vertical.js
|
|
26
|
-
.listitem-card
|
|
27
|
-
%pre.code.break-spaces
|
|
28
|
-
:plain
|
|
29
|
-
import * as echarts from 'echarts';
|
|
30
|
-
export function createChartVertical (target, targetDataY, targetDataX, itemWidth) {
|
|
31
|
-
var chartHeight = 200;
|
|
32
|
-
var labelHeight = 20;
|
|
33
|
-
var dom = document.getElementById(target);
|
|
34
|
-
var myChartVertical = echarts.init(dom, null, {
|
|
35
|
-
renderer: 'canvas',
|
|
36
|
-
useDirtyRect: false,
|
|
37
|
-
height: chartHeight + labelHeight
|
|
38
|
-
});
|
|
39
|
-
var itemWidthUser;
|
|
40
|
-
if (itemWidth) {
|
|
41
|
-
var itemWidthUser = itemWidth;
|
|
42
|
-
} else {
|
|
43
|
-
itemWidthUser = targetDataX.length -1
|
|
44
|
-
};
|
|
45
|
-
var optionVertical;
|
|
46
|
-
var optionVertical = {
|
|
47
|
-
tooltip: {
|
|
48
|
-
trigger: 'axis',
|
|
49
|
-
axisPointer: {
|
|
50
|
-
type: 'shadow'
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
grid: {
|
|
54
|
-
height: chartHeight,
|
|
55
|
-
top: '15',
|
|
56
|
-
left: '0',
|
|
57
|
-
right: '10',
|
|
58
|
-
bottom: '0',
|
|
59
|
-
containLabel: true
|
|
60
|
-
},
|
|
61
|
-
xAxis: {
|
|
62
|
-
show: true,
|
|
63
|
-
type: 'category',
|
|
64
|
-
max: itemWidthUser,
|
|
65
|
-
data: targetDataX,
|
|
66
|
-
axisTick: {
|
|
67
|
-
show: false
|
|
68
|
-
},
|
|
69
|
-
axisLine: {
|
|
70
|
-
show: false
|
|
71
|
-
},
|
|
72
|
-
axisLabel: {
|
|
73
|
-
show: true,
|
|
74
|
-
width: 100,
|
|
75
|
-
overflow: "truncate",
|
|
76
|
-
ellipsis: '…',
|
|
77
|
-
hideOverlap: true,
|
|
78
|
-
interval: 0
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
yAxis: {
|
|
82
|
-
show: false,
|
|
83
|
-
type: 'value'
|
|
84
|
-
},
|
|
85
|
-
series: [
|
|
86
|
-
{
|
|
87
|
-
data: targetDataY,
|
|
88
|
-
type: 'bar',
|
|
89
|
-
barWidth: 15,
|
|
90
|
-
label: {
|
|
91
|
-
show: true,
|
|
92
|
-
position: 'center',
|
|
93
|
-
verticalAlign: 'top',
|
|
94
|
-
offset: [0, -15]
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
};
|
|
99
|
-
if (optionVertical && typeof optionVertical === 'object') {
|
|
100
|
-
myChartVertical.setOption(optionVertical);
|
|
101
|
-
}
|
|
102
|
-
window.addEventListener('resize', myChartVertical.resize);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
%p.mt-md.mb-xs With adaptive item width
|
|
106
|
-
.card.bg-gray-lightest.p-md.mb-xs
|
|
107
|
-
.echarts-container#echarts-bar-vertical-1
|
|
108
|
-
%details.listitem.mb-md
|
|
109
|
-
%summary.listitem-header
|
|
110
|
-
.listitem-title
|
|
111
|
-
%span.icon.icon-format-code.mr-xs
|
|
112
|
-
Create vertical bar chart with 6 items
|
|
113
|
-
.listitem-metrics
|
|
114
|
-
.listitem-actions
|
|
115
|
-
.btn.collapse-btn
|
|
116
|
-
.listitem-content
|
|
117
|
-
.listitem-subheadline HTML
|
|
118
|
-
.listitem-card
|
|
119
|
-
%code .echarts-container#element-id
|
|
120
|
-
.listitem-subheadline app.js
|
|
121
|
-
.listitem-card
|
|
122
|
-
%pre.code.break-spaces
|
|
123
|
-
:plain
|
|
124
|
-
import { createChartVertical } from './modules/echarts_vertical';
|
|
125
|
-
createChartVertical("echarts-bar-vertical-1", dataBugs, dataBugsCategories);
|
|
126
|
-
.listitem-subheadline data.js
|
|
127
|
-
.listitem-card
|
|
128
|
-
%pre.code.break-spaces
|
|
129
|
-
:plain
|
|
130
|
-
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
131
|
-
export let dataBugs = [
|
|
132
|
-
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
133
|
-
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
134
|
-
{ value: 19, name: 'Low', itemStyle: {color: colorLow}},
|
|
135
|
-
{ value: 99, name: 'Visual', itemStyle: {color: colorVisual}},
|
|
136
|
-
{ value: 53, name: 'Content', itemStyle: {color: colorContent}},
|
|
137
|
-
{ value: 53, name: 'UX', itemStyle: {color: colorUX}},
|
|
138
|
-
];
|
|
139
|
-
export let dataBugsCategories = [
|
|
140
|
-
{ value:'Critical'},
|
|
141
|
-
{ value: 'High'},
|
|
142
|
-
{ value: 'Low'},
|
|
143
|
-
{ value: 'Visual'},
|
|
144
|
-
{ value: 'Content'},
|
|
145
|
-
{ value: 'UX'}
|
|
146
|
-
];
|
|
147
|
-
.listitem-subheadline colors.js
|
|
148
|
-
.listitem-card
|
|
149
|
-
%pre.code.break-spaces
|
|
150
|
-
:plain
|
|
151
|
-
export const colorCritical = '#FF3131';
|
|
152
|
-
export const colorHigh = '#d8ce0d';
|
|
153
|
-
export const colorLow = '#9fa2a8';
|
|
154
|
-
export const colorVisual = '#f48d21';
|
|
155
|
-
export const colorContent = '#326dd1';
|
|
156
|
-
export const colorUX = '#263340';
|
|
157
|
-
export const colorSuccess = '#8cbd24';
|
|
158
|
-
export const colorDanger = '#FF3131';
|
|
159
|
-
export const colorNeutral = '#e6e6e6';
|
|
160
|
-
export const colorInfo = '#326dd1';
|
|
161
|
-
export const colorBlueLight = '#21bef4';
|
|
162
|
-
.card.bg-gray-lightest.p-md.mb-xs
|
|
163
|
-
.echarts-container#echarts-bar-vertical-2
|
|
164
|
-
%details.listitem.mb-md
|
|
165
|
-
%summary.listitem-header
|
|
166
|
-
.listitem-title
|
|
167
|
-
%span.icon.icon-format-code.mr-xs
|
|
168
|
-
Create vertical bar chart with 3 items
|
|
169
|
-
.listitem-metrics
|
|
170
|
-
.listitem-actions
|
|
171
|
-
.btn.collapse-btn
|
|
172
|
-
.listitem-content
|
|
173
|
-
.listitem-subheadline HTML
|
|
174
|
-
.listitem-card
|
|
175
|
-
%code .echarts-container#element-id
|
|
176
|
-
.listitem-subheadline app.js
|
|
177
|
-
.listitem-card
|
|
178
|
-
%pre.code.break-spaces
|
|
179
|
-
:plain
|
|
180
|
-
import { createChartVertical } from './modules/echarts_vertical';
|
|
181
|
-
createChartVertical("echarts-bar-vertical-2", dataBugsFew, dataBugsCategoriesFew);
|
|
182
|
-
.listitem-subheadline data.js
|
|
183
|
-
.listitem-card
|
|
184
|
-
%pre.code.break-spaces
|
|
185
|
-
:plain
|
|
186
|
-
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
187
|
-
export let dataBugsFew = [
|
|
188
|
-
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
189
|
-
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
190
|
-
{ value: 19, name: 'Low', itemStyle: {color: colorLow}}
|
|
191
|
-
];
|
|
192
|
-
export let dataBugsCategoriesFew = [
|
|
193
|
-
{ value:'Critical'},
|
|
194
|
-
{ value: 'High'},
|
|
195
|
-
{ value: 'Low'}
|
|
196
|
-
];
|
|
197
|
-
.listitem-subheadline colors.js
|
|
198
|
-
.listitem-card
|
|
199
|
-
%pre.code.break-spaces
|
|
200
|
-
:plain
|
|
201
|
-
export const colorCritical = '#FF3131';
|
|
202
|
-
export const colorHigh = '#d8ce0d';
|
|
203
|
-
export const colorLow = '#9fa2a8';
|
|
204
|
-
export const colorVisual = '#f48d21';
|
|
205
|
-
export const colorContent = '#326dd1';
|
|
206
|
-
export const colorUX = '#263340';
|
|
207
|
-
export const colorSuccess = '#8cbd24';
|
|
208
|
-
export const colorDanger = '#FF3131';
|
|
209
|
-
export const colorNeutral = '#e6e6e6';
|
|
210
|
-
export const colorInfo = '#326dd1';
|
|
211
|
-
export const colorBlueLight = '#21bef4';
|
|
212
|
-
.card.bg-gray-lightest.p-xs.mb-xs
|
|
213
|
-
.echarts-container#echarts-bar-vertical-3
|
|
214
|
-
%details.listitem.mb-md
|
|
215
|
-
%summary.listitem-header
|
|
216
|
-
.listitem-title
|
|
217
|
-
%span.icon.icon-format-code.mr-xs
|
|
218
|
-
Create vertical bar chart with longer item names
|
|
219
|
-
.listitem-metrics
|
|
220
|
-
.listitem-actions
|
|
221
|
-
.btn.collapse-btn
|
|
222
|
-
.listitem-content
|
|
223
|
-
.listitem-subheadline HTML
|
|
224
|
-
.listitem-card
|
|
225
|
-
%code .echarts-container#element-id
|
|
226
|
-
.listitem-subheadline app.js
|
|
227
|
-
.listitem-card
|
|
228
|
-
%pre.code.break-spaces
|
|
229
|
-
:plain
|
|
230
|
-
import { createChartVertical } from './modules/echarts_vertical';
|
|
231
|
-
createChartVertical("echarts-bar-vertical-3", dataFeaturesManyNumbers, dataFeaturesMany);
|
|
232
|
-
.listitem-subheadline data.js
|
|
233
|
-
.listitem-card
|
|
234
|
-
%pre.code.break-spaces
|
|
235
|
-
:plain
|
|
236
|
-
export let dataFeaturesManyNumbers = [
|
|
237
|
-
8, 33, 64, 23, 55, 77, 39, 57
|
|
238
|
-
];
|
|
239
|
-
export let dataFeaturesMany = [
|
|
240
|
-
'Feature A',
|
|
241
|
-
'Feature B',
|
|
242
|
-
'Feature with a very long name',
|
|
243
|
-
'Feature with an even longer name',
|
|
244
|
-
'ABC',
|
|
245
|
-
'ZDF',
|
|
246
|
-
'WWW',
|
|
247
|
-
'Just another feature name'
|
|
248
|
-
];
|
|
249
|
-
%p.mt-md.mb-xs With fixed item width
|
|
250
|
-
.card.bg-gray-lightest.p-md.mb-md
|
|
251
|
-
.echarts-container#echarts-bar-vertical-1-fixed
|
|
252
|
-
%details.listitem.mb-md
|
|
253
|
-
%summary.listitem-header
|
|
254
|
-
.listitem-title
|
|
255
|
-
%span.icon.icon-format-code.mr-xs
|
|
256
|
-
Create vertical bar chart with 6 items and fixed width
|
|
257
|
-
.listitem-metrics
|
|
258
|
-
.listitem-actions
|
|
259
|
-
.btn.collapse-btn
|
|
260
|
-
.listitem-content
|
|
261
|
-
.listitem-subheadline HTML
|
|
262
|
-
.listitem-card
|
|
263
|
-
%code .echarts-container#element-id
|
|
264
|
-
.listitem-subheadline app.js
|
|
265
|
-
.listitem-card
|
|
266
|
-
%pre.code.break-spaces
|
|
267
|
-
:plain
|
|
268
|
-
import { createChartVertical } from './modules/echarts_vertical';
|
|
269
|
-
createChartVertical("echarts-bar-vertical-1-fixed", dataBugs, dataBugsCategories, 10);
|
|
270
|
-
.listitem-subheadline data.js
|
|
271
|
-
.listitem-card
|
|
272
|
-
%pre.code.break-spaces
|
|
273
|
-
:plain
|
|
274
|
-
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
275
|
-
export let dataBugs = [
|
|
276
|
-
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
277
|
-
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
278
|
-
{ value: 19, name: 'Low', itemStyle: {color: colorLow}},
|
|
279
|
-
{ value: 99, name: 'Visual', itemStyle: {color: colorVisual}},
|
|
280
|
-
{ value: 53, name: 'Content', itemStyle: {color: colorContent}},
|
|
281
|
-
{ value: 53, name: 'UX', itemStyle: {color: colorUX}},
|
|
282
|
-
];
|
|
283
|
-
export let dataBugsCategories = [
|
|
284
|
-
{ value:'Critical'},
|
|
285
|
-
{ value: 'High'},
|
|
286
|
-
{ value: 'Low'},
|
|
287
|
-
{ value: 'Visual'},
|
|
288
|
-
{ value: 'Content'},
|
|
289
|
-
{ value: 'UX'}
|
|
290
|
-
];
|
|
291
|
-
.listitem-subheadline colors.js
|
|
292
|
-
.listitem-card
|
|
293
|
-
%pre.code.break-spaces
|
|
294
|
-
:plain
|
|
295
|
-
export const colorCritical = '#FF3131';
|
|
296
|
-
export const colorHigh = '#d8ce0d';
|
|
297
|
-
export const colorLow = '#9fa2a8';
|
|
298
|
-
export const colorVisual = '#f48d21';
|
|
299
|
-
export const colorContent = '#326dd1';
|
|
300
|
-
export const colorUX = '#263340';
|
|
301
|
-
export const colorSuccess = '#8cbd24';
|
|
302
|
-
export const colorDanger = '#FF3131';
|
|
303
|
-
export const colorNeutral = '#e6e6e6';
|
|
304
|
-
export const colorInfo = '#326dd1';
|
|
305
|
-
export const colorBlueLight = '#21bef4';
|
|
306
|
-
.card.bg-gray-lightest.p-md.mb-md
|
|
307
|
-
.echarts-container#echarts-bar-vertical-2-fixed
|
|
308
|
-
%details.listitem.mb-md
|
|
309
|
-
%summary.listitem-header
|
|
310
|
-
.listitem-title
|
|
311
|
-
%span.icon.icon-format-code.mr-xs
|
|
312
|
-
Create vertical bar chart with 3 items and fixed width
|
|
313
|
-
.listitem-metrics
|
|
314
|
-
.listitem-actions
|
|
315
|
-
.btn.collapse-btn
|
|
316
|
-
.listitem-content
|
|
317
|
-
.listitem-subheadline HTML
|
|
318
|
-
.listitem-card
|
|
319
|
-
%code .echarts-container#element-id
|
|
320
|
-
.listitem-subheadline app.js
|
|
321
|
-
.listitem-card
|
|
322
|
-
%pre.code.break-spaces
|
|
323
|
-
:plain
|
|
324
|
-
import { createChartVertical } from './modules/echarts_vertical';
|
|
325
|
-
createChartVertical("echarts-bar-vertical-2-fixed", dataBugsFew, dataBugsCategoriesFew, 10);
|
|
326
|
-
.listitem-subheadline data.js
|
|
327
|
-
.listitem-card
|
|
328
|
-
%pre.code.break-spaces
|
|
329
|
-
:plain
|
|
330
|
-
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
331
|
-
export let dataBugsFew = [
|
|
332
|
-
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
333
|
-
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
334
|
-
{ value: 19, name: 'Low', itemStyle: {color: colorLow}}
|
|
335
|
-
];
|
|
336
|
-
export let dataBugsCategoriesFew = [
|
|
337
|
-
{ value:'Critical'},
|
|
338
|
-
{ value: 'High'},
|
|
339
|
-
{ value: 'Low'}
|
|
340
|
-
];
|
|
341
|
-
.listitem-subheadline colors.js
|
|
342
|
-
.listitem-card
|
|
343
|
-
%pre.code.break-spaces
|
|
344
|
-
:plain
|
|
345
|
-
export const colorCritical = '#FF3131';
|
|
346
|
-
export const colorHigh = '#d8ce0d';
|
|
347
|
-
export const colorLow = '#9fa2a8';
|
|
348
|
-
export const colorVisual = '#f48d21';
|
|
349
|
-
export const colorContent = '#326dd1';
|
|
350
|
-
export const colorUX = '#263340';
|
|
351
|
-
export const colorSuccess = '#8cbd24';
|
|
352
|
-
export const colorDanger = '#FF3131';
|
|
353
|
-
export const colorNeutral = '#e6e6e6';
|
|
354
|
-
export const colorInfo = '#326dd1';
|
|
355
|
-
export const colorBlueLight = '#21bef4';
|
|
356
|
-
.card.bg-gray-lightest.p-md
|
|
357
|
-
.echarts-container#echarts-bar-vertical-3-fixed
|
|
358
|
-
%details.listitem.mb-md
|
|
359
|
-
%summary.listitem-header
|
|
360
|
-
.listitem-title
|
|
361
|
-
%span.icon.icon-format-code.mr-xs
|
|
362
|
-
Create vertical bar chart with longer item names and fixed width
|
|
363
|
-
.listitem-metrics
|
|
364
|
-
.listitem-actions
|
|
365
|
-
.btn.collapse-btn
|
|
366
|
-
.listitem-content
|
|
367
|
-
.listitem-subheadline HTML
|
|
368
|
-
.listitem-card
|
|
369
|
-
%code .echarts-container#element-id
|
|
370
|
-
.listitem-subheadline app.js
|
|
371
|
-
.listitem-card
|
|
372
|
-
%pre.code.break-spaces
|
|
373
|
-
:plain
|
|
374
|
-
import { createChartVertical } from './modules/echarts_vertical';
|
|
375
|
-
createChartVertical("echarts-bar-vertical-3-fixed", dataFeaturesManyNumbers, dataFeaturesMany, 10);
|
|
376
|
-
.listitem-subheadline data.js
|
|
377
|
-
.listitem-card
|
|
378
|
-
%pre.code.break-spaces
|
|
379
|
-
:plain
|
|
380
|
-
export let dataFeaturesManyNumbers = [
|
|
381
|
-
8, 33, 64, 23, 55, 77, 39, 57
|
|
382
|
-
];
|
|
383
|
-
export let dataFeaturesMany = [
|
|
384
|
-
'Feature A',
|
|
385
|
-
'Feature B',
|
|
386
|
-
'Feature with a very long name',
|
|
387
|
-
'Feature with an even longer name',
|
|
388
|
-
'ABC',
|
|
389
|
-
'ZDF',
|
|
390
|
-
'WWW',
|
|
391
|
-
'Just another feature name'
|
|
1
|
+
---
|
|
2
|
+
tags: charts
|
|
3
|
+
title: Bar chart vertical
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
.div
|
|
7
|
+
%details.listitem.mb-md
|
|
8
|
+
%summary.listitem-header
|
|
9
|
+
.listitem-title
|
|
10
|
+
%span.icon.icon-format-code.mr-xs
|
|
11
|
+
Initialize vertical bar chart
|
|
12
|
+
.listitem-metrics
|
|
13
|
+
.listitem-actions
|
|
14
|
+
.btn.collapse-btn
|
|
15
|
+
.listitem-content
|
|
16
|
+
.listitem-subheadline HTML
|
|
17
|
+
.listitem-card
|
|
18
|
+
%code .echarts-container#element-id
|
|
19
|
+
.listitem-subheadline app.js
|
|
20
|
+
.listitem-card
|
|
21
|
+
%pre.code.break-spaces
|
|
22
|
+
:plain
|
|
23
|
+
import { createChartVertical } from './modules/echarts_vertical';
|
|
24
|
+
createChartVertical (target, targetDataY, targetDataX, itemWidth);
|
|
25
|
+
.listitem-subheadline echarts_vertical.js
|
|
26
|
+
.listitem-card
|
|
27
|
+
%pre.code.break-spaces
|
|
28
|
+
:plain
|
|
29
|
+
import * as echarts from 'echarts';
|
|
30
|
+
export function createChartVertical (target, targetDataY, targetDataX, itemWidth) {
|
|
31
|
+
var chartHeight = 200;
|
|
32
|
+
var labelHeight = 20;
|
|
33
|
+
var dom = document.getElementById(target);
|
|
34
|
+
var myChartVertical = echarts.init(dom, null, {
|
|
35
|
+
renderer: 'canvas',
|
|
36
|
+
useDirtyRect: false,
|
|
37
|
+
height: chartHeight + labelHeight
|
|
38
|
+
});
|
|
39
|
+
var itemWidthUser;
|
|
40
|
+
if (itemWidth) {
|
|
41
|
+
var itemWidthUser = itemWidth;
|
|
42
|
+
} else {
|
|
43
|
+
itemWidthUser = targetDataX.length -1
|
|
44
|
+
};
|
|
45
|
+
var optionVertical;
|
|
46
|
+
var optionVertical = {
|
|
47
|
+
tooltip: {
|
|
48
|
+
trigger: 'axis',
|
|
49
|
+
axisPointer: {
|
|
50
|
+
type: 'shadow'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
grid: {
|
|
54
|
+
height: chartHeight,
|
|
55
|
+
top: '15',
|
|
56
|
+
left: '0',
|
|
57
|
+
right: '10',
|
|
58
|
+
bottom: '0',
|
|
59
|
+
containLabel: true
|
|
60
|
+
},
|
|
61
|
+
xAxis: {
|
|
62
|
+
show: true,
|
|
63
|
+
type: 'category',
|
|
64
|
+
max: itemWidthUser,
|
|
65
|
+
data: targetDataX,
|
|
66
|
+
axisTick: {
|
|
67
|
+
show: false
|
|
68
|
+
},
|
|
69
|
+
axisLine: {
|
|
70
|
+
show: false
|
|
71
|
+
},
|
|
72
|
+
axisLabel: {
|
|
73
|
+
show: true,
|
|
74
|
+
width: 100,
|
|
75
|
+
overflow: "truncate",
|
|
76
|
+
ellipsis: '…',
|
|
77
|
+
hideOverlap: true,
|
|
78
|
+
interval: 0
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
yAxis: {
|
|
82
|
+
show: false,
|
|
83
|
+
type: 'value'
|
|
84
|
+
},
|
|
85
|
+
series: [
|
|
86
|
+
{
|
|
87
|
+
data: targetDataY,
|
|
88
|
+
type: 'bar',
|
|
89
|
+
barWidth: 15,
|
|
90
|
+
label: {
|
|
91
|
+
show: true,
|
|
92
|
+
position: 'center',
|
|
93
|
+
verticalAlign: 'top',
|
|
94
|
+
offset: [0, -15]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
};
|
|
99
|
+
if (optionVertical && typeof optionVertical === 'object') {
|
|
100
|
+
myChartVertical.setOption(optionVertical);
|
|
101
|
+
}
|
|
102
|
+
window.addEventListener('resize', myChartVertical.resize);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
%p.mt-md.mb-xs With adaptive item width
|
|
106
|
+
.card.bg-gray-lightest.p-md.mb-xs
|
|
107
|
+
.echarts-container#echarts-bar-vertical-1
|
|
108
|
+
%details.listitem.mb-md
|
|
109
|
+
%summary.listitem-header
|
|
110
|
+
.listitem-title
|
|
111
|
+
%span.icon.icon-format-code.mr-xs
|
|
112
|
+
Create vertical bar chart with 6 items
|
|
113
|
+
.listitem-metrics
|
|
114
|
+
.listitem-actions
|
|
115
|
+
.btn.collapse-btn
|
|
116
|
+
.listitem-content
|
|
117
|
+
.listitem-subheadline HTML
|
|
118
|
+
.listitem-card
|
|
119
|
+
%code .echarts-container#element-id
|
|
120
|
+
.listitem-subheadline app.js
|
|
121
|
+
.listitem-card
|
|
122
|
+
%pre.code.break-spaces
|
|
123
|
+
:plain
|
|
124
|
+
import { createChartVertical } from './modules/echarts_vertical';
|
|
125
|
+
createChartVertical("echarts-bar-vertical-1", dataBugs, dataBugsCategories);
|
|
126
|
+
.listitem-subheadline data.js
|
|
127
|
+
.listitem-card
|
|
128
|
+
%pre.code.break-spaces
|
|
129
|
+
:plain
|
|
130
|
+
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
131
|
+
export let dataBugs = [
|
|
132
|
+
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
133
|
+
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
134
|
+
{ value: 19, name: 'Low', itemStyle: {color: colorLow}},
|
|
135
|
+
{ value: 99, name: 'Visual', itemStyle: {color: colorVisual}},
|
|
136
|
+
{ value: 53, name: 'Content', itemStyle: {color: colorContent}},
|
|
137
|
+
{ value: 53, name: 'UX', itemStyle: {color: colorUX}},
|
|
138
|
+
];
|
|
139
|
+
export let dataBugsCategories = [
|
|
140
|
+
{ value:'Critical'},
|
|
141
|
+
{ value: 'High'},
|
|
142
|
+
{ value: 'Low'},
|
|
143
|
+
{ value: 'Visual'},
|
|
144
|
+
{ value: 'Content'},
|
|
145
|
+
{ value: 'UX'}
|
|
146
|
+
];
|
|
147
|
+
.listitem-subheadline colors.js
|
|
148
|
+
.listitem-card
|
|
149
|
+
%pre.code.break-spaces
|
|
150
|
+
:plain
|
|
151
|
+
export const colorCritical = '#FF3131';
|
|
152
|
+
export const colorHigh = '#d8ce0d';
|
|
153
|
+
export const colorLow = '#9fa2a8';
|
|
154
|
+
export const colorVisual = '#f48d21';
|
|
155
|
+
export const colorContent = '#326dd1';
|
|
156
|
+
export const colorUX = '#263340';
|
|
157
|
+
export const colorSuccess = '#8cbd24';
|
|
158
|
+
export const colorDanger = '#FF3131';
|
|
159
|
+
export const colorNeutral = '#e6e6e6';
|
|
160
|
+
export const colorInfo = '#326dd1';
|
|
161
|
+
export const colorBlueLight = '#21bef4';
|
|
162
|
+
.card.bg-gray-lightest.p-md.mb-xs
|
|
163
|
+
.echarts-container#echarts-bar-vertical-2
|
|
164
|
+
%details.listitem.mb-md
|
|
165
|
+
%summary.listitem-header
|
|
166
|
+
.listitem-title
|
|
167
|
+
%span.icon.icon-format-code.mr-xs
|
|
168
|
+
Create vertical bar chart with 3 items
|
|
169
|
+
.listitem-metrics
|
|
170
|
+
.listitem-actions
|
|
171
|
+
.btn.collapse-btn
|
|
172
|
+
.listitem-content
|
|
173
|
+
.listitem-subheadline HTML
|
|
174
|
+
.listitem-card
|
|
175
|
+
%code .echarts-container#element-id
|
|
176
|
+
.listitem-subheadline app.js
|
|
177
|
+
.listitem-card
|
|
178
|
+
%pre.code.break-spaces
|
|
179
|
+
:plain
|
|
180
|
+
import { createChartVertical } from './modules/echarts_vertical';
|
|
181
|
+
createChartVertical("echarts-bar-vertical-2", dataBugsFew, dataBugsCategoriesFew);
|
|
182
|
+
.listitem-subheadline data.js
|
|
183
|
+
.listitem-card
|
|
184
|
+
%pre.code.break-spaces
|
|
185
|
+
:plain
|
|
186
|
+
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
187
|
+
export let dataBugsFew = [
|
|
188
|
+
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
189
|
+
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
190
|
+
{ value: 19, name: 'Low', itemStyle: {color: colorLow}}
|
|
191
|
+
];
|
|
192
|
+
export let dataBugsCategoriesFew = [
|
|
193
|
+
{ value:'Critical'},
|
|
194
|
+
{ value: 'High'},
|
|
195
|
+
{ value: 'Low'}
|
|
196
|
+
];
|
|
197
|
+
.listitem-subheadline colors.js
|
|
198
|
+
.listitem-card
|
|
199
|
+
%pre.code.break-spaces
|
|
200
|
+
:plain
|
|
201
|
+
export const colorCritical = '#FF3131';
|
|
202
|
+
export const colorHigh = '#d8ce0d';
|
|
203
|
+
export const colorLow = '#9fa2a8';
|
|
204
|
+
export const colorVisual = '#f48d21';
|
|
205
|
+
export const colorContent = '#326dd1';
|
|
206
|
+
export const colorUX = '#263340';
|
|
207
|
+
export const colorSuccess = '#8cbd24';
|
|
208
|
+
export const colorDanger = '#FF3131';
|
|
209
|
+
export const colorNeutral = '#e6e6e6';
|
|
210
|
+
export const colorInfo = '#326dd1';
|
|
211
|
+
export const colorBlueLight = '#21bef4';
|
|
212
|
+
.card.bg-gray-lightest.p-xs.mb-xs
|
|
213
|
+
.echarts-container#echarts-bar-vertical-3
|
|
214
|
+
%details.listitem.mb-md
|
|
215
|
+
%summary.listitem-header
|
|
216
|
+
.listitem-title
|
|
217
|
+
%span.icon.icon-format-code.mr-xs
|
|
218
|
+
Create vertical bar chart with longer item names
|
|
219
|
+
.listitem-metrics
|
|
220
|
+
.listitem-actions
|
|
221
|
+
.btn.collapse-btn
|
|
222
|
+
.listitem-content
|
|
223
|
+
.listitem-subheadline HTML
|
|
224
|
+
.listitem-card
|
|
225
|
+
%code .echarts-container#element-id
|
|
226
|
+
.listitem-subheadline app.js
|
|
227
|
+
.listitem-card
|
|
228
|
+
%pre.code.break-spaces
|
|
229
|
+
:plain
|
|
230
|
+
import { createChartVertical } from './modules/echarts_vertical';
|
|
231
|
+
createChartVertical("echarts-bar-vertical-3", dataFeaturesManyNumbers, dataFeaturesMany);
|
|
232
|
+
.listitem-subheadline data.js
|
|
233
|
+
.listitem-card
|
|
234
|
+
%pre.code.break-spaces
|
|
235
|
+
:plain
|
|
236
|
+
export let dataFeaturesManyNumbers = [
|
|
237
|
+
8, 33, 64, 23, 55, 77, 39, 57
|
|
238
|
+
];
|
|
239
|
+
export let dataFeaturesMany = [
|
|
240
|
+
'Feature A',
|
|
241
|
+
'Feature B',
|
|
242
|
+
'Feature with a very long name',
|
|
243
|
+
'Feature with an even longer name',
|
|
244
|
+
'ABC',
|
|
245
|
+
'ZDF',
|
|
246
|
+
'WWW',
|
|
247
|
+
'Just another feature name'
|
|
248
|
+
];
|
|
249
|
+
%p.mt-md.mb-xs With fixed item width
|
|
250
|
+
.card.bg-gray-lightest.p-md.mb-md
|
|
251
|
+
.echarts-container#echarts-bar-vertical-1-fixed
|
|
252
|
+
%details.listitem.mb-md
|
|
253
|
+
%summary.listitem-header
|
|
254
|
+
.listitem-title
|
|
255
|
+
%span.icon.icon-format-code.mr-xs
|
|
256
|
+
Create vertical bar chart with 6 items and fixed width
|
|
257
|
+
.listitem-metrics
|
|
258
|
+
.listitem-actions
|
|
259
|
+
.btn.collapse-btn
|
|
260
|
+
.listitem-content
|
|
261
|
+
.listitem-subheadline HTML
|
|
262
|
+
.listitem-card
|
|
263
|
+
%code .echarts-container#element-id
|
|
264
|
+
.listitem-subheadline app.js
|
|
265
|
+
.listitem-card
|
|
266
|
+
%pre.code.break-spaces
|
|
267
|
+
:plain
|
|
268
|
+
import { createChartVertical } from './modules/echarts_vertical';
|
|
269
|
+
createChartVertical("echarts-bar-vertical-1-fixed", dataBugs, dataBugsCategories, 10);
|
|
270
|
+
.listitem-subheadline data.js
|
|
271
|
+
.listitem-card
|
|
272
|
+
%pre.code.break-spaces
|
|
273
|
+
:plain
|
|
274
|
+
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
275
|
+
export let dataBugs = [
|
|
276
|
+
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
277
|
+
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
278
|
+
{ value: 19, name: 'Low', itemStyle: {color: colorLow}},
|
|
279
|
+
{ value: 99, name: 'Visual', itemStyle: {color: colorVisual}},
|
|
280
|
+
{ value: 53, name: 'Content', itemStyle: {color: colorContent}},
|
|
281
|
+
{ value: 53, name: 'UX', itemStyle: {color: colorUX}},
|
|
282
|
+
];
|
|
283
|
+
export let dataBugsCategories = [
|
|
284
|
+
{ value:'Critical'},
|
|
285
|
+
{ value: 'High'},
|
|
286
|
+
{ value: 'Low'},
|
|
287
|
+
{ value: 'Visual'},
|
|
288
|
+
{ value: 'Content'},
|
|
289
|
+
{ value: 'UX'}
|
|
290
|
+
];
|
|
291
|
+
.listitem-subheadline colors.js
|
|
292
|
+
.listitem-card
|
|
293
|
+
%pre.code.break-spaces
|
|
294
|
+
:plain
|
|
295
|
+
export const colorCritical = '#FF3131';
|
|
296
|
+
export const colorHigh = '#d8ce0d';
|
|
297
|
+
export const colorLow = '#9fa2a8';
|
|
298
|
+
export const colorVisual = '#f48d21';
|
|
299
|
+
export const colorContent = '#326dd1';
|
|
300
|
+
export const colorUX = '#263340';
|
|
301
|
+
export const colorSuccess = '#8cbd24';
|
|
302
|
+
export const colorDanger = '#FF3131';
|
|
303
|
+
export const colorNeutral = '#e6e6e6';
|
|
304
|
+
export const colorInfo = '#326dd1';
|
|
305
|
+
export const colorBlueLight = '#21bef4';
|
|
306
|
+
.card.bg-gray-lightest.p-md.mb-md
|
|
307
|
+
.echarts-container#echarts-bar-vertical-2-fixed
|
|
308
|
+
%details.listitem.mb-md
|
|
309
|
+
%summary.listitem-header
|
|
310
|
+
.listitem-title
|
|
311
|
+
%span.icon.icon-format-code.mr-xs
|
|
312
|
+
Create vertical bar chart with 3 items and fixed width
|
|
313
|
+
.listitem-metrics
|
|
314
|
+
.listitem-actions
|
|
315
|
+
.btn.collapse-btn
|
|
316
|
+
.listitem-content
|
|
317
|
+
.listitem-subheadline HTML
|
|
318
|
+
.listitem-card
|
|
319
|
+
%code .echarts-container#element-id
|
|
320
|
+
.listitem-subheadline app.js
|
|
321
|
+
.listitem-card
|
|
322
|
+
%pre.code.break-spaces
|
|
323
|
+
:plain
|
|
324
|
+
import { createChartVertical } from './modules/echarts_vertical';
|
|
325
|
+
createChartVertical("echarts-bar-vertical-2-fixed", dataBugsFew, dataBugsCategoriesFew, 10);
|
|
326
|
+
.listitem-subheadline data.js
|
|
327
|
+
.listitem-card
|
|
328
|
+
%pre.code.break-spaces
|
|
329
|
+
:plain
|
|
330
|
+
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
331
|
+
export let dataBugsFew = [
|
|
332
|
+
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
333
|
+
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
334
|
+
{ value: 19, name: 'Low', itemStyle: {color: colorLow}}
|
|
335
|
+
];
|
|
336
|
+
export let dataBugsCategoriesFew = [
|
|
337
|
+
{ value:'Critical'},
|
|
338
|
+
{ value: 'High'},
|
|
339
|
+
{ value: 'Low'}
|
|
340
|
+
];
|
|
341
|
+
.listitem-subheadline colors.js
|
|
342
|
+
.listitem-card
|
|
343
|
+
%pre.code.break-spaces
|
|
344
|
+
:plain
|
|
345
|
+
export const colorCritical = '#FF3131';
|
|
346
|
+
export const colorHigh = '#d8ce0d';
|
|
347
|
+
export const colorLow = '#9fa2a8';
|
|
348
|
+
export const colorVisual = '#f48d21';
|
|
349
|
+
export const colorContent = '#326dd1';
|
|
350
|
+
export const colorUX = '#263340';
|
|
351
|
+
export const colorSuccess = '#8cbd24';
|
|
352
|
+
export const colorDanger = '#FF3131';
|
|
353
|
+
export const colorNeutral = '#e6e6e6';
|
|
354
|
+
export const colorInfo = '#326dd1';
|
|
355
|
+
export const colorBlueLight = '#21bef4';
|
|
356
|
+
.card.bg-gray-lightest.p-md
|
|
357
|
+
.echarts-container#echarts-bar-vertical-3-fixed
|
|
358
|
+
%details.listitem.mb-md
|
|
359
|
+
%summary.listitem-header
|
|
360
|
+
.listitem-title
|
|
361
|
+
%span.icon.icon-format-code.mr-xs
|
|
362
|
+
Create vertical bar chart with longer item names and fixed width
|
|
363
|
+
.listitem-metrics
|
|
364
|
+
.listitem-actions
|
|
365
|
+
.btn.collapse-btn
|
|
366
|
+
.listitem-content
|
|
367
|
+
.listitem-subheadline HTML
|
|
368
|
+
.listitem-card
|
|
369
|
+
%code .echarts-container#element-id
|
|
370
|
+
.listitem-subheadline app.js
|
|
371
|
+
.listitem-card
|
|
372
|
+
%pre.code.break-spaces
|
|
373
|
+
:plain
|
|
374
|
+
import { createChartVertical } from './modules/echarts_vertical';
|
|
375
|
+
createChartVertical("echarts-bar-vertical-3-fixed", dataFeaturesManyNumbers, dataFeaturesMany, 10);
|
|
376
|
+
.listitem-subheadline data.js
|
|
377
|
+
.listitem-card
|
|
378
|
+
%pre.code.break-spaces
|
|
379
|
+
:plain
|
|
380
|
+
export let dataFeaturesManyNumbers = [
|
|
381
|
+
8, 33, 64, 23, 55, 77, 39, 57
|
|
382
|
+
];
|
|
383
|
+
export let dataFeaturesMany = [
|
|
384
|
+
'Feature A',
|
|
385
|
+
'Feature B',
|
|
386
|
+
'Feature with a very long name',
|
|
387
|
+
'Feature with an even longer name',
|
|
388
|
+
'ABC',
|
|
389
|
+
'ZDF',
|
|
390
|
+
'WWW',
|
|
391
|
+
'Just another feature name'
|
|
392
392
|
];
|