All Projects β†’ codersrank-org β†’ skills-chart-widget

codersrank-org / skills-chart-widget

Licence: MIT license
Integrate skills chart from your CodersRank profile to your personal website

Programming Languages

javascript
184084 projects - #8 most used programming language
SCSS
7915 projects
HTML
75241 projects

Projects that are alternatives of or similar to skills-chart-widget

Sourcerer App
πŸ¦„ Sourcerer app makes a visual profile from your GitHub and git repositories.
Stars: ✭ 6,645 (+26480%)
Mutual labels:  profile, portfolio, skills, cv
Linkedrw
A simple CLI to create your resume and personal website based on your LinkedIn profile or a JSON file
Stars: ✭ 104 (+316%)
Mutual labels:  profile, portfolio, cv
Cv
πŸŽ“ Best in Class modern CV, Resume and Portfolio website template. All-in-One-Page site with simply customizable builder.
Stars: ✭ 232 (+828%)
Mutual labels:  portfolio, skills, cv
Creative Profile Readme
A Collection of GitHub Profiles with awesome readme
Stars: ✭ 449 (+1696%)
Mutual labels:  profile, portfolio
Developers-Portfolio
πŸ’Ό This is a Social App for Developers to interact with other users through messages and sharing projects.
Stars: ✭ 101 (+304%)
Mutual labels:  profile, portfolio
stringify.me
Quick and Easy Profiles (No Login Required)
Stars: ✭ 52 (+108%)
Mutual labels:  profile, portfolio
awesome-libraries
😎 Libraries that are being shown in Sourcerer profiles.
Stars: ✭ 131 (+424%)
Mutual labels:  skills, cv
JayantGoel001
JayantGoel001's profile with 74 stars ⭐ and 91 forks πŸŽ‰.
Stars: ✭ 74 (+196%)
Mutual labels:  profile, portfolio
BlackIQ
Who I am !?
Stars: ✭ 19 (-24%)
Mutual labels:  profile, cv
github-pinner
πŸ“Œ Pin and embed github repositories or profiles on your own website easily
Stars: ✭ 62 (+148%)
Mutual labels:  profile, portfolio
nisrulz.github.io
Everything about Nishant Srivastava/nisrulz (online alias)
Stars: ✭ 41 (+64%)
Mutual labels:  portfolio, cv
CVparser
CVparser is software for parsing or extracting data out of CV/resumes.
Stars: ✭ 28 (+12%)
Mutual labels:  skills, cv
jakejarvis
hey πŸ‘‹
Stars: ✭ 15 (-40%)
Mutual labels:  profile, portfolio
Lichter.io
My own website and CV
Stars: ✭ 105 (+320%)
Mutual labels:  portfolio, cv
Mindula-Dilthushan
I am Mindula Dilthushan Manamperi πŸ˜‹
Stars: ✭ 23 (-8%)
Mutual labels:  profile, portfolio
Aaronvandenberg.nl
βš›οΈ Web Developers portfolio build with Gatsby.js & React.js
Stars: ✭ 98 (+292%)
Mutual labels:  portfolio, cv
Jalpc
🍎Jalpc -- A flexible Jekyll theme, 3 steps to build your website.
Stars: ✭ 859 (+3336%)
Mutual labels:  portfolio, cv
Portfolio Template
An Open-Sourced Template for developers to show-off there skills. Made with ReactJS
Stars: ✭ 52 (+108%)
Mutual labels:  portfolio, skills
developerIdentity
Developers Identity(Portfolio) Template that helps you showcase your work and skills as a software developer.
Stars: ✭ 21 (-16%)
Mutual labels:  portfolio, skills
Cool-Readme-ideas
πŸŽ‰πŸŽ‰πŸŽ‰ Some cool ideas for your readme profile, enjoy :)
Stars: ✭ 72 (+188%)
Mutual labels:  profile, portfolio

CodersRank Skills Chart Widget

CodersRank Skills Chart Widget is a web component that allows you easily integrate nice looking skills chart from your CodersRank profile to your personal website:

Install from NPM

Widget script available through NPM:

npm i @codersrank/skills-chart --save

After installation you need to import and register web component:

import CodersRankSkillsChart from '@codersrank/skills-chart';

// register web component as <codersrank-skills-chart> element
window.customElements.define('codersrank-skills-chart', CodersRankSkillsChart);

Install from CDN

Widget can also be downloaded or linked directly from CDN:

<!-- replace x.x.x with actual version -->
<script src="https://unpkg.com/@codersrank/[email protected]/codersrank-skills-chart.min.js"></script>

In this case it is not required to register web component, it is already registered as <codersrank-skills-chart> element.

Usage

As it is a web component the usage is pretty simple, just add widget HTML tag with your CodersRank username

<codersrank-skills-chart username="YOUR_USERNAME"></codersrank-skills-chart>

Widget Attributes

Widget supports following properties as HTML element attributes:

Name Type Default Description
username string Your CodersRank username
labels boolean false Display chart labels (chart axis with dates)
legend boolean false Display legend below the chart
tooltip boolean false Enables tooltip with number of activities per day
skills string Allows to specify skills to display in chart. For example skills="JavaScript, Vue, CSS"
active-skills string Allows to specify skills to be active by default (all skills not specified here will appear as disabled). For example active-skills="JavaScript, Vue"
svg-width number 640 Render width of chart's SVG element. Ideally should match actual chart width
svg-height number 320 Render height of chart's SVG element. Ideally should match actual chart height
show-other-skills boolean false Group skills not specified in skills property under the "Other" chart area
max-labels number 8 Maximum amount of labels (dates) to be displayed (dates)
branding boolean true Displays "Powered by CodersRank" link
sort-by-score boolean false Sorts labels by score if true or alphabetically

For example, to enable labels, legend and tooltip:

<codersrank-skills-chart
  username="YOUR_USERNAME"
  labels
  legend
  tooltip
></codersrank-skills-chart>

Styling

It is possible to customize widget colors with CSS Custom Properties (CSS Variables) by setting them directly on the widget element with style attribute or in CSS.

There are following CSS Custom Properties are available:

Property Value
--font-family Open Sans, Helvetica Neue, Helvetica, Arial, sans-serif
--svg-width 100%
--svg-height auto
--axis-bg-color rgba(0, 0, 0, 0.35)
--hidden-area-color #ddd
--label-text-color inherit
--label-font-size 10px
--label-font-weight 500
--label-white-space nowrap
--legend-text-color inherit
--legend-disabled-text-color #ccc
--legend-font-size 14px
--preloader-color #72a0a8
--tooltip-font-size 12px
--tooltip-total-font-size 16px
--tooltip-total-font-weight bold
--other-skills-area-color #bbb
--chart-bg-color transparent
--chart-border-radius 0px
--branding-text-color inherit

For example, to change legend text color to red and font-size to 12px, add this to CSS stylesheet:

codersrank-skills-chart {
  --legend-text-color: red;
  --legend-font-size: 12px;
}

Events

Widget element supports the following events:

Name Description Detail
error Will be fired on data request error `event.detail` will contain an error object
data Will be fired right after data request `event.detail` will contain an object with `highest` and `scores` properties.

`highest` object contains information about when user had the highest score

`scores` array contains information about skills scores by dates

render Will be fired right after chart rendered to DOM

For example:

<codersrank-skills-chart id="skills-chart" skils="..."></codersrank-skills-chart>
function onData(event) {
  const highest = event.detail.highest;
  console.log(`Highest score was ${highest.score} on ${highest.date}`);
}
document.querySelector('#skills-chart').addEventListener('data', onData);

Use As Image

It is also possible to insert Skills Chart as an image. It is useful in places where you can't integrate web component, or for example on your GitHub profile README.md page.

Image URL is the following:

https://cr-skills-chart-widget.azurewebsites.net/api/api?username=YOUR_USERNAME

It accepts query parameters:

Name Type Default Description
username string Your CodersRank username
skills string Specify skills to display in chart (comma separated), for example ?skills=JavaScript,TypeScript
width number 640 Render width of chart's SVG element. Ideally should match actual chart width
height number 320 Render height of chart's SVG element. Ideally should match actual chart height
show-other-skills boolean false Group skills not specified in skills property under the "Other" chart area
bg string #fff Chart background image
padding number 0 Image content padding

For example:

<img
  src="https://cr-skills-chart-widget.azurewebsites.net/api/api?username=YOUR_USERNAME&skills=JavaScript,TypeScript&show-other-skills=true"
/>

Live example:

<img
  src="https://cr-skills-chart-widget.azurewebsites.net/api/api?username=nolimits4web&skills=Vue,C%2B%2B,C%23,SCSS,Svelte&width=820"
/>

Note that you need to URL Encode some of the characters, for example C++ should be C%2B%2B and C# should be C%23

Contribution

Yes please! See the contributing guidelines for details.

Licence

This project is licensed under the terms of the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].