Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/99-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ identified with a specific icon:
- 🌱 *console*: units are written in words, the axis of a graph shows the
unit, times use a 24-hour clock and the first ten series each get a color
of their own
- 🌱 *console*: the lines of a graph are thicker and the links of a Sankey
graph are less transparent
- 🌱 *console*: the home page shows the traffic now and its peak, ranks the
top lists with the share of each entry, and groups the fields of the last
flow. The fields without a value are behind a button
Expand Down
5 changes: 3 additions & 2 deletions web/src/components/visualize/graphs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function useLineOption(data: GraphLineResult, isDark: boolean): ECOption {
type: "line",
symbol: "none",
itemStyle: { color: color(uniqIndex(row), false, theme) },
lineStyle: { color: color(uniqIndex(row), false, theme), width: 2 },
lineStyle: { color: color(uniqIndex(row), false, theme), width: 3 },
emphasis: { focus: "series" },
encode: {
x: 0,
Expand Down Expand Up @@ -523,7 +523,8 @@ function SankeyGraph({ data }: { data: GraphSankeyResult }) {
animationDuration: 500,
emphasis: { focus: "trajectory" as const },
label: { formatter: "{b}", color: chrome.ink, fontFamily: "Poppins" },
lineStyle: { color: "gradient" as const, curveness: 0.5 },
// Twice the default opacity: the links were faint on both themes.
lineStyle: { color: "gradient" as const, curveness: 0.5, opacity: 0.4 },
};
const bold = (value: number) =>
`<span style="display:inline-block;margin-left:2em;font-weight:bold;">${formatXps(value)}</span>`;
Expand Down
Loading