diff options
| author | Mohammad S Anwar <mohammad.anwar@yahoo.com> | 2021-07-11 17:49:09 +0100 |
|---|---|---|
| committer | Mohammad S Anwar <mohammad.anwar@yahoo.com> | 2021-07-11 17:49:09 +0100 |
| commit | c5b6045dd780f65174f9eecae20162b6fc68e72a (patch) | |
| tree | 86aeff593567857358c13c6b54bef00ecd7c6d1c | |
| parent | 3e62fa72548921721998a8b05220a83753f2130f (diff) | |
| download | perlweeklychallenge-club-c5b6045dd780f65174f9eecae20162b6fc68e72a.tar.gz perlweeklychallenge-club-c5b6045dd780f65174f9eecae20162b6fc68e72a.tar.bz2 perlweeklychallenge-club-c5b6045dd780f65174f9eecae20162b6fc68e72a.zip | |
- Added solutions by Colin Crain.
| -rw-r--r-- | challenge-120/colin-crain/perl/ch-1.pl | 68 | ||||
| -rw-r--r-- | challenge-120/colin-crain/perl/ch-2.pl | 113 | ||||
| -rw-r--r-- | challenge-120/colin-crain/raku/ch-1.raku | 44 | ||||
| -rw-r--r-- | challenge-120/colin-crain/raku/ch-2.raku | 29 | ||||
| -rw-r--r-- | stats/pwc-current.json | 246 | ||||
| -rw-r--r-- | stats/pwc-language-breakdown-summary.json | 74 | ||||
| -rw-r--r-- | stats/pwc-language-breakdown.json | 1588 | ||||
| -rw-r--r-- | stats/pwc-leaders.json | 360 | ||||
| -rw-r--r-- | stats/pwc-summary-1-30.json | 16 | ||||
| -rw-r--r-- | stats/pwc-summary-121-150.json | 42 | ||||
| -rw-r--r-- | stats/pwc-summary-151-180.json | 46 | ||||
| -rw-r--r-- | stats/pwc-summary-181-210.json | 46 | ||||
| -rw-r--r-- | stats/pwc-summary-211-240.json | 86 | ||||
| -rw-r--r-- | stats/pwc-summary-31-60.json | 104 | ||||
| -rw-r--r-- | stats/pwc-summary-61-90.json | 92 | ||||
| -rw-r--r-- | stats/pwc-summary-91-120.json | 42 | ||||
| -rw-r--r-- | stats/pwc-summary.json | 44 |
17 files changed, 1651 insertions, 1389 deletions
diff --git a/challenge-120/colin-crain/perl/ch-1.pl b/challenge-120/colin-crain/perl/ch-1.pl new file mode 100644 index 0000000000..a8abd8c68d --- /dev/null +++ b/challenge-120/colin-crain/perl/ch-1.pl @@ -0,0 +1,68 @@ +#!/Users/colincrain/perl5/perlbrew/perls/perl-5.32.0/bin/perl
+#
+# get-oddly-even.pl
+#
+# Swap Odd/Even bits
+# Submitted by: Mohammad S Anwar
+# You are given a positive integer $N less than or equal to 255.
+#
+# Write a script to swap the odd positioned bit with even positioned bit
+# and print the decimal equivalent of the new binary representation.
+#
+# Example
+#
+# Input : $N = 101
+# Output: 154
+#
+# Binary representation of the given number is 01 10 01 01. The
+# new binary representation after the odd/even swap is 10 01 10
+# 10. The decimal equivalent of 10011010 is 154.
+#
+# Input : $N = 18
+# Output: 33
+#
+# Binary representation of the given number is 00 01 00 10. The
+# new binary representation after the odd/even swap is 00 10 00
+# 01. The decimal equivalent of 100001 is 33.
+#
+#
+# method
+# we know the number is less than 256 and greater than 0, so it will
+# fit cleanly into an 8-bit binary representation. The first order
+# of action is to convert it into this set number of 0 and 1 digits,
+# signifying bits, using the "%08b" format specifier. Now the fun
+# begins.
+#
+# We know the length of the string to be 8 characters exactly. By
+# applying a global regular expression match against pairings of 1s
+# and 0s we can divide our 8 characters into 4 groups of 2, returned
+# as a list. In this list we use `reverse` in a scalar context to
+# map each string to a reversed version of itself, swapping the
+# characters. These mutated string bits are then rejoined with a
+# "0b" prefix to indicate to `oct` that we wish to parse a string as
+# though it were a binary number. This returns our altered bit
+# string to the decimal number requested for output.
+#
+#
+# © 2021 colin crain
+## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
+
+
+
+use warnings;
+use strict;
+use utf8;
+use feature ":5.26";
+use feature qw(signatures);
+no warnings 'experimental::signatures';
+
+my $num = shift // 18;
+
+my $bin = sprintf "%08b", $num;
+my $res = oct(join '', '0b', map { scalar reverse "$_" } $bin =~ /([01]{2})/g );
+
+say<<"END";
+input: $num
+output: $res
+
+END
diff --git a/challenge-120/colin-crain/perl/ch-2.pl b/challenge-120/colin-crain/perl/ch-2.pl new file mode 100644 index 0000000000..1e9e247bdf --- /dev/null +++ b/challenge-120/colin-crain/perl/ch-2.pl @@ -0,0 +1,113 @@ +#!/Users/colincrain/perl5/perlbrew/perls/perl-5.32.0/bin/perl
+#
+# what-angle-we-at.pl
+#
+# Clock Angle
+# Submitted by: Mohammad S Anwar
+# You are given time $T in the format hh:mm.
+#
+# Write a script to find the smaller angle formed by the hands of an
+# analog clock at a given time.
+#
+# HINT: A analog clock is divided up into 12 sectors. One sector
+# represents 30 degree (360/12 = 30).
+#
+# Example
+# Input: $T = '03:10'
+# Output: 35 degree
+#
+# The distance between the 2 and the 3 on the clock is 30 degree.
+# For the 10 minutes i.e. 1/6 of an hour that have passed.
+# The hour hand has also moved 1/6 of the distance between the 3 and the
+# 4, which adds 5 degree (1/6 of 30).
+# The total measure of the angle is 35 degree.
+#
+# Input: $T = '04:00'
+# Output: 120 degree
+
+# method:
+# Rolex wristwatches are known for their "sweep" second hand
+# movement; that is to say the hand does not move incrementally,
+# once a second, from one pip to the next, but rather is seen to
+# move in a continuous flow around the dial. This action is
+# remarkably difficult to achieve in a mechanical movement where the
+# fundamental timekeeping period is based on an oscillating
+# vibration, such as a pendulum. In fact it is ultimately
+# illusionary, based on a rapidly moving pendulum buffered by
+# springs to appear more fluid.
+#
+# With the introduction of inexpensive, accurate electric motors
+# much of the panache of the sweep hand has gone away, and the Rolex
+# has had to rely more on its rugged good looks and maybe the notion that
+# it's body is machined from a giant block of gold. But I digress.
+# In a pendulum-driven clock movement the action is commonly
+# designed to move with a two-second period: one across, and one
+# back. This can be precisely tuned by adjusting the length of the
+# pendulum arm, and forms the basis of all the timekeeping: each
+# half-swing is one tick, 60 of these comprise a minute, and three
+# thouand six hundred to an hour.
+#
+# It's not hard to make a clock with a sweep minute hand, where the
+# hand makes one revolution per hour in as many increments as the
+# pendulum allows. But this is not always advantagous: in a clock
+# without a second hand, such as one would find in a clock-tower,
+# having the minute hand fall between marks leads to ambiguity in
+# reading. One person may see 43 minutes past the hour, another 42.
+# It is often more desirable to have an intenal mechanism rachet
+# along counting pendulum swings on a gear, and only once a
+# revolution have a pin engage a mechanism and move the minute hand
+# one place. In this way the clock hand stays at 42 until the moment
+# arrives, when in moves all at onece to 43 and remains for another
+# minute until it moves again.
+#
+# On the other, other hand, no mechanical clock does this for the hour
+# hand. We go about our day and normally deal with time in a finer
+# granularity than the hour, and hence knowing that it's somewhere
+# between 1 and 2 is useful information in itself to know.
+#
+# So ignoring the second hand, in just the hours and minutes of many
+# common clocks we have
+# two modes of moving the hand: continuous and discrete. With
+# respect to an angle swept from midnight or noon, the minute hand
+# will have moved six degrees every minute, always. As without
+# further information we have no
+# idea how many seconds have elapsed since the last minute tick
+# we cannot improve on this
+# calculation even if we wanted to.
+#
+# For the hours, back to one of our previous other hands,
+# the hand moves a set amount for
+# each hour, but also takes a submovement between the pips based on
+# dividing the interval between two hour points into 60 minutes. The
+# final sweep amount for the hand at any given time will be the sum
+# of the two partial motions.
+
+
+
+
+#
+# © 2021 colin crain
+## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
+
+
+
+use warnings;
+use strict;
+use utf8;
+use feature ":5.26";
+use feature qw(signatures);
+no warnings 'experimental::signatures';
+
+
+my $timestr = shift // qw ( 9:49);
+
+my ($h, $m) = $timestr =~ /(\d?\d):(\d\d)/;
+$h %= 12;
+my $mdeg = $m * 6;
+my $hdeg = $h * 30 + $m * 0.5;
+my $ang = abs( $hdeg - $mdeg );
+$ang = 360 - $ang if $ang > 180;
+
+say "time: $timestr";
+say "$ang degrees";
+
diff --git a/challenge-120/colin-crain/raku/ch-1.raku b/challenge-120/colin-crain/raku/ch-1.raku new file mode 100644 index 0000000000..db69ccfcee --- /dev/null +++ b/challenge-120/colin-crain/raku/ch-1.raku @@ -0,0 +1,44 @@ +#!/usr/bin/env perl6 +# +# +# get-oddly-even.raku +# +# Swap Odd/Even bits +# Submitted by: Mohammad S Anwar +# You are given a positive integer $N less than or equal to 255. +# +# Write a script to swap the odd positioned bit with even positioned bit +# and print the decimal equivalent of the new binary representation. +# +# Example +# +# Input : $N = 101 +# Output: 154 +# +# Binary representation of the given number is 01 10 01 01. The +# new binary representation after the odd/even swap is 10 01 10 +# 10. The decimal equivalent of 10011010 is 154. +# +# Input : $N = 18 +# Output: 33 +# +# Binary representation of the given number is 00 01 00 10. The +# new binary representation after the odd/even swap is 00 10 00 +# 01. The decimal equivalent of 100001 is 33. + +# +# +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN ( Int $num where 0 < $num < 256 = 18 ) ; + +$num.fmt("%08b") + .comb(2) + .map(*.flip) + .join + .parse-base(2) + .say; diff --git a/challenge-120/colin-crain/raku/ch-2.raku b/challenge-120/colin-crain/raku/ch-2.raku new file mode 100644 index 0000000000..d74f9a25c1 --- /dev/null +++ b/challenge-120/colin-crain/raku/ch-2.raku @@ -0,0 +1,29 @@ +#!/usr/bin/env perl6 +# +# +# .raku +# +# +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN (Str $time = "12:55" ); +say $time; + +unless $time ~~ /^ (\d?\d) \: (\d\d) $/ { + die "usage:\n time input in the form hh:mm" +} + +my $h-ang = ( $0 % 12 ) * 30 + $1 * 0.5; +my $m-ang = $1 * 6; +my $ang = ( $h-ang - $m-ang ).abs; +$ang = 360 - $ang if $ang > 180; +say $ang; + + + + + diff --git a/stats/pwc-current.json b/stats/pwc-current.json index c150ba60d5..cce03a19a4 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,10 +1,9 @@ { - "legend" : { - "enabled" : 0 - }, "drilldown" : { "series" : [ { + "name" : "Abigail", + "id" : "Abigail", "data" : [ [ "Perl", @@ -14,11 +13,10 @@ "Blog", 2 ] - ], - "id" : "Abigail", - "name" : "Abigail" + ] }, { + "name" : "Athanasius", "id" : "Athanasius", "data" : [ [ @@ -29,18 +27,17 @@ "Raku", 2 ] - ], - "name" : "Athanasius" + ] }, { - "name" : "Belmark Caday", - "id" : "Belmark Caday", "data" : [ [ "Perl", 1 ] - ] + ], + "id" : "Belmark Caday", + "name" : "Belmark Caday" }, { "id" : "Cheok-Yin Fung", @@ -58,13 +55,21 @@ }, { "name" : "Colin Crain", - "id" : "Colin Crain", "data" : [ [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ "Blog", 1 ] - ] + ], + "id" : "Colin Crain" }, { "data" : [ @@ -77,18 +82,17 @@ "name" : "Dave Cross" }, { + "name" : "E. Choroba", "id" : "E. Choroba", "data" : [ [ "Perl", 2 ] - ], - "name" : "E. Choroba" + ] }, { "name" : "Flavio Poletti", - "id" : "Flavio Poletti", "data" : [ [ "Perl", @@ -102,10 +106,10 @@ "Blog", 2 ] - ] + ], + "id" : "Flavio Poletti" }, { - "name" : "James Smith", "id" : "James Smith", "data" : [ [ @@ -116,17 +120,18 @@ "Blog", 1 ] - ] + ], + "name" : "James Smith" }, { - "name" : "Jan Krnavek", "id" : "Jan Krnavek", "data" : [ [ "Raku", 2 ] - ] + ], + "name" : "Jan Krnavek" }, { "name" : "Jorg Sommrey", @@ -140,13 +145,13 @@ }, { "name" : "Lance Wicks", - "id" : "Lance Wicks", "data" : [ [ "Perl", 1 ] - ] + ], + "id" : "Lance Wicks" }, { "id" : "Laurent Rosenfeld", @@ -167,16 +172,18 @@ "name" : "Laurent Rosenfeld" }, { + "name" : "Lubos Kolouch", + "id" : "Lubos Kolouch", "data" : [ [ "Perl", 2 ] - ], - "id" : "Lubos Kolouch", - "name" : "Lubos Kolouch" + ] }, { + "name" : "Luca Ferrari", + "id" : "Luca Ferrari", "data" : [ [ "Raku", @@ -186,9 +193,7 @@ "Blog", 2 ] - ], - "id" : "Luca Ferrari", - "name" : "Luca Ferrari" + ] }, { "name" : "Lucas Ransan", @@ -212,63 +217,63 @@ }, { "name" : "Mohammad S Anwar", - "id" : "Mohammad S Anwar", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Mohammad S Anwar" }, { - "name" : "Niels van Dijke", + "id" : "Niels van Dijke", "data" : [ [ "Perl", 2 ] ], - "id" : "Niels van Dijke" + "name" : "Niels van Dijke" }, { - "name" : "Paul Fajman", - "id" : "Paul Fajman", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Paul Fajman", + "name" : "Paul Fajman" }, { + "name" : "Paulo Custodio", "id" : "Paulo Custodio", "data" : [ [ "Perl", 2 ] - ], - "name" : "Paulo Custodio" + ] }, { + "name" : "Pete Houston", "data" : [ [ "Perl", 2 ] ], - "id" : "Pete Houston", - "name" : "Pete Houston" + "id" : "Pete Houston" }, { - "name" : "Peter Scott", - "id" : "Peter Scott", "data" : [ [ "Perl", 1 ] - ] + ], + "id" : "Peter Scott", + "name" : "Peter Scott" }, { "name" : "Roger Bell_West", @@ -303,34 +308,34 @@ "name" : "Simon Green" }, { - "name" : "Simon Proctor", - "id" : "Simon Proctor", "data" : [ [ "Raku", 2 ] - ] + ], + "id" : "Simon Proctor", + "name" : "Simon Proctor" }, { + "name" : "Steve Bresson", "id" : "Steve Bresson", "data" : [ [ "Perl", 2 ] - ], - "name" : "Steve Bresson" + ] }, { - "name" : "Steven Wilson", "data" : [ [ "Perl", 1 ] ], - "id" : "Steven Wilson" + "id" : "Steven Wilson", + "name" : "Steven Wilson" }, { "data" : [ @@ -347,6 +352,7 @@ "name" : "Stuart Little" }, { + "id" : "Ulrich Rieke", "data" : [ [ "Perl", @@ -357,12 +363,10 @@ 2 ] ], - "id" : "Ulrich Rieke", "name" : "Ulrich Rieke" }, { "name" : "W. Luis Mochan", - "id" : "W. Luis Mochan", "data" : [ [ "Perl", @@ -372,7 +376,8 @@ "Blog", 1 ] - ] + ], + "id" : "W. Luis Mochan" }, { "id" : "Wanderdoc", @@ -386,6 +391,9 @@ } ] }, + "xAxis" : { + "type" : "category" + }, "plotOptions" : { "series" : { "dataLabels" : { @@ -395,39 +403,44 @@ "borderWidth" : 0 } }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "xAxis" : { - "type" : "category" - }, "tooltip" : { - "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>", + "followPointer" : 1, "pointFormat" : "<span style='color:{point.color}'>{point.name}</span>: <b>{point.y:f}</b><br/>", - "followPointer" : 1 + "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>" + }, + "legend" : { + "enabled" : 0 + }, + "title" : { + "text" : "The Weekly Challenge - 120" }, "chart" : { "type" : "column" }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "subtitle" : { + "text" : "[Champions: 32] Last updated at 2021-07-11 16:48:07 GMT" + }, "series" : [ { - "colorByPoint" : 1, "data" : [ { + "y" : 4, "drilldown" : "Abigail", - "name" : "Abigail", - "y" : 4 + "name" : "Abigail" }, { - "drilldown" : "Athanasius", "y" : 4, + "drilldown" : "Athanasius", "name" : "Athanasius" }, { - "drilldown" : "Belmark Caday", "name" : "Belmark Caday", + "drilldown" : "Belmark Caday", "y" : 1 }, { @@ -437,48 +450,48 @@ }, { "drilldown" : "Colin Crain", - "y" : 1, - "name" : "Colin Crain" + "name" : "Colin Crain", + "y" : 5 }, { "name" : "Dave Cross", - "y" : 2, - "drilldown" : "Dave Cross" + "drilldown" : "Dave Cross", + "y" : 2 }, { "drilldown" : "E. Choroba", - "y" : 2, - "name" : "E. Choroba" + "name" : "E. Choroba", + "y" : 2 }, { + "drilldown" : "Flavio Poletti", "name" : "Flavio Poletti", - "y" : 6, - "drilldown" : "Flavio Poletti" + "y" : 6 }, { - "y" : 3, "name" : "James Smith", - "drilldown" : "James Smith" + "drilldown" : "James Smith", + "y" : 3 }, { - "drilldown" : "Jan Krnavek", "y" : 2, + "drilldown" : "Jan Krnavek", "name" : "Jan Krnavek" }, { - "name" : "Jorg Sommrey", "y" : 2, - "drilldown" : "Jorg Sommrey" + "drilldown" : "Jorg Sommrey", + "name" : "Jorg Sommrey" }, { "y" : 1, - "name" : "Lance Wicks", - "drilldown" : "Lance Wicks" + "drilldown" : "Lance Wicks", + "name" : "Lance Wicks" }, { + "drilldown" : "Laurent Rosenfeld", "name" : "Laurent Rosenfeld", - "y" : 5, - "drilldown" : "Laurent Rosenfeld" + "y" : 5 }, { "drilldown" : "Lubos Kolouch", @@ -486,9 +499,9 @@ "y" : 2 }, { - "y" : 4, "name" : "Luca Ferrari", - "drilldown" : "Luca Ferrari" + "drilldown" : "Luca Ferrari", + "y" : 4 }, { "drilldown" : "Lucas Ransan", @@ -497,53 +510,53 @@ }, { "y" : 2, - "name" : "Mark Anderson", - "drilldown" : "Mark Anderson" + "drilldown" : "Mark Anderson", + "name" : "Mark Anderson" }, { + "drilldown" : "Mohammad S Anwar", "name" : "Mohammad S Anwar", - "y" : 2, - "drilldown" : "Mohammad S Anwar" + "y" : 2 }, { - "y" : 2, "name" : "Niels van Dijke", - "drilldown" : "Niels van Dijke" + "drilldown" : "Niels van Dijke", + "y" : 2 }, { "name" : "Paul Fajman", - "y" : 2, - "drilldown" : "Paul Fajman" + "drilldown" : "Paul Fajman", + "y" : 2 }, { - "y" : 2, + "drilldown" : "Paulo Custodio", "name" : "Paulo Custodio", - "drilldown" : "Paulo Custodio" + "y" : 2 }, { - "name" : "Pete Houston", "y" : 2, + "name" : "Pete Houston", "drilldown" : "Pete Houston" }, { - "y" : 1, + "drilldown" : "Peter Scott", "name" : "Peter Scott", - "drilldown" : "Peter Scott" + "y" : 1 }, { "y" : 5, - "name" : "Roger Bell_West", - "drilldown" : "Roger Bell_West" + "drilldown" : "Roger Bell_West", + "name" : "Roger Bell_West" }, { - "name" : "Simon Green", "y" : 3, - "drilldown" : "Simon Green" + "drilldown" : "Simon Green", + "name" : "Simon Green" }, { - "y" : 2, "name" : "Simon Proctor", - "drilldown" : "Simon Proctor" + "drilldown" : "Simon Proctor", + "y" : 2 }, { "y" : 2, @@ -556,14 +569,14 @@ "drilldown" : "Steven Wilson" }, { - "name" : "Stuart Little", "y" : 4, - "drilldown" : "Stuart Little" + "drilldown" : "Stuart Little", + "name" : "Stuart Little" }, { - "y" : 4, "name" : "Ulrich Rieke", - "drilldown" : "Ulrich Rieke" + "drilldown" : "Ulrich Rieke", + "y" : 4 }, { "y" : 3, @@ -571,18 +584,13 @@ "drilldown" : "W. Luis Mochan" }, { + "drilldown" : "Wanderdoc", "name" : "Wanderdoc", - "y" : 2, - "drilldown" : "Wanderdoc" + "y" : 2 } ], + "colorByPoint" : 1, "name" : "The Weekly Challenge - 120" } - ], - "subtitle" : { - "text" : "[Champions: 32] Last updated at 2021-07-11 12:38:08 GMT" - }, - "title" : { - "text" : "The Weekly Challenge - 120" - } + ] } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index e96bbfcf80..d5f2e1d2e5 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,37 +1,18 @@ { - "tooltip" : { - "pointFormat" : "<b>{point.y:.0f}</b>" - }, - "xAxis" : { - "type" : "category", - "labels" : { - "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" - } - } + "chart" : { + "type" : "column" }, "subtitle" : { - "text" : "Last updated at 2021-07-11 12:38:08 GMT" + "text" : "Last updated at 2021-07-11 16:48:07 GMT" }, - "title" : { - "text" : "The Weekly Challenge Contributions [2019 - 2021]" + "yAxis" : { + "title" : { + "text" : null + }, + "min" : 0 }, "series" : [ { - "name" : "Contributions", - "dataLabels" : { - "y" : 10, - "rotation" : -90, - "align" : "right", - "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" - }, - "format" : "{point.y:.0f}", - "color" : "#FFFFFF", - "enabled" : "true" - }, "data" : [ [ "Blog", @@ -39,25 +20,44 @@ ], [ "Perl", - 5733 + 5735 ], [ "Raku", - 3596 + 3598 ] - ] + ], + "name" : "Contributions", + "dataLabels" : { + "align" : "right", + "rotation" : -90, + "enabled" : "true", + "format" : "{point.y:.0f}", + "color" : "#FFFFFF", + "style" : { + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" + }, + "y" : 10 + } } ], - "chart" : { - "type" : "column" + "tooltip" : { + "pointFormat" : "<b>{point.y:.0f}</b>" + }, + "xAxis" : { + "labels" : { + "style" : { + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" + } + }, + "type" : "category" }, "legend" : { "enabled" : "false" }, - "yAxis" : { - "title" : { - "text" : null - }, - "min" : 0 + "title" : { + "text" : "The Weekly Challenge Contributions [2019 - 2021]" } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index 4b6637035a..e452f746b1 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,633 +1,13 @@ { - "tooltip" : { - "followPointer" : "true", - "headerFormat" : "<span style=\"font-size:11px\"></span>", - "pointFormat" : "<span style=\"color:{point.color}\">Challenge {point.name}</s |
