Microbit Jack
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    ###### tags: `JS學徒特訓班` # Day31 部落格文章閱讀後心得 個人是比較喜愛,[**Tim Hsu**](https://hsuchihting.github.io/javascript/20200715/679666643/) 及 [**Erica**](https://hackmd.io/4rYt6CF9TMCmmFqPnF8Tig?view) 所撰寫的文章,講解的都很詳細,也能啟發我一些想法及實作。 # Day30 完成之路 Day30 有說需要撰寫一篇心得文,真是讓人頭大呀!由其是本身就沒有在撰寫BLOG的習慣,這樣子的要求,說實在真的是考驗如何在短時間內,撰寫出擁有一定程度的文章,就把Day30的解決題目心得跟觀看別人解題的文章撰寫成一篇。 ## 看到題目時的心情 當看到 Day30 的題目時,我是一整個傻掉的,畢竟...就算躲的了一時,也躲不了一輩子,老天爺想要你學習的東西,就算你一時PASS了,之後還是會遇到。 ## 思考解答 淯杰老師很好心的提供了大家一條思路,使用 BarChart 來解決 Day30 的要求,但這過程,卻讓我一邊撰寫時一邊無法接受我所撰寫的結果,最後在我一邊看著官網的文件,一邊嚐試各個功能終於也生出了一版,是自己可以接受的版本了:heart:。 ## 過程考驗 在處理的過程中當生出了第一版本後就發現到有一些地方想要去優化它 - Q1:為什麼完成度的刻度是只有到 60,我想要顯示到 100 - Q2:我想要在每一位學徒的進度條上顯示個人目前的進度 ![Q1Q2](https:///i.imgur.com/HRAtA59.png) ```javascript= //Q1 解法 labels: { format: { '完成率': function(v, id, i, j) { return v + '%'; //這裡先知道 v 是我們圖表中y軸的資料值 } } } //Q2 解法 //需要在 axis 加上下列語法 y: { max: 90, // 這是用來設定要顯示最大刻度為多少 }, ``` - Q3:想要在最上面增加進度條 ![增加上列進度條](https://i.imgur.com/AXOwmlT.png) ```javascript= //需要在 axis 加上下列語法 y2: { default: [0, 100], // 這是用來設定刻度區間值為 0 ~ 100 }, ``` Q4:為什麼我無法插入 **完成率** 到 **columns** 中 ![Q3型態轉換](https://i.imgur.com/YsMYYOx.png) 在撰寫的過程中,當我把資料組好了,卻發現了為什麼,我的y軸沒有顯示完成度,而是資料第1筆值;查了文件後才發現,我少在資料集中的第1筆提供了要顯示的文字;所以我就打算在 handleData 處理完資料後再使用 **陣列提供的方法 unshift** 來將'完成率'插入到陣列的第 1 筆。撰寫後卻發現一直無法順利讓畫面將圖表渲染出來,後來才發現是因為 map 後的資料型態是 **Object** 而不是 **Array**,解法在餵 Google 後得知可以使用 Object.values 來處理。 **[Day30 完成品](https://codepen.io/tobedesigner/full/GRoYJoR)** ## 心得 經過 Day30 的洗禮,也算是有學到一點點 **[C3](https://c3js.org/reference.html)** 的皮毛吧(?),後續就算又需要用到 C3 我相信我還是必須一邊看著官網文件,一邊思考如何處理要求...。 學習真的是一條不歸路,加入了**JS學徒特訓班**後自己對自己開了一些坑(使用MarkDown語法並記錄這60天的過程、重新溫習犀牛書、~~加加減減學習HTML、CSS~~),說到HTML及CSS,看著一些人的畫面,真是讓我好羨慕呀!這就是前端的魅力!好看的畫面就是吸睛... ## 大家推坑項目 - PUG - SCSS 大家都一直在推坑呀!我是不是誤入了什麼地方...末完待續...

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully