GithubHelp home page GithubHelp logo

圖表文字重疊 about councilor-voter-guide HOT 16 CLOSED

g0v avatar g0v commented on July 30, 2024
圖表文字重疊

from councilor-voter-guide.

Comments (16)

thewayiam avatar thewayiam commented on July 30, 2024

g0v/twly-voter-guide#20
在立委投票指南也遇到此問題,數值太小的部份文字會重疊

from councilor-voter-guide.

s890081tonyhsu avatar s890081tonyhsu commented on July 30, 2024

套用highcharts效果,如果可以,我希望能全部使用

PC hover, Mobile tap都有顯示百分比
image

from councilor-voter-guide.

seadog007 avatar seadog007 commented on July 30, 2024

2014-11-19 9 49 42
圖表重疊++

from councilor-voter-guide.

seadog007 avatar seadog007 commented on July 30, 2024

"PC hover, Mobile tap都有顯示百分比" 這個idea不錯
Google chart也可以做到 而且好像很方便

from councilor-voter-guide.

s890081tonyhsu avatar s890081tonyhsu commented on July 30, 2024

其實我會提這Issue重點除了圖表重疊之外,還有相對極小的資料顯示問題

因為Pie Chart重點是比例比較,如果說兩筆相對(最大資料)極小的資料要做比較,highcharts有功能可以將大資料隱藏

雖然不知用戶會不會發現這功能,但我希望用戶第一眼是看到比例,而不是擠在一起的數字

from councilor-voter-guide.

yuchiang-hsiao avatar yuchiang-hsiao commented on July 30, 2024

如果說讓滑鼠移到區塊上才讓數字顯示呢?

from councilor-voter-guide.

ChiaYinT avatar ChiaYinT commented on July 30, 2024

我試了加上把滑鼠移到區塊上才讓數字顯示
這樣的效果好嗎??

screen shot 2014-11-25 at 1 04 36 pm

from councilor-voter-guide.

s890081tonyhsu avatar s890081tonyhsu commented on July 30, 2024

如果是用在最小項之百分比約1%的或許還有用
但是在收入支出的圖表常發生極大和極小值的差距,滑鼠要摸到好像有點困難

再者,手機用戶想要做到mouseover效果,需要用按壓(Chrome for Android的處理方式),同樣如前,極小值真的摸得到嗎

如果能解決以上兩點,才算是解決圖表文字重疊

from councilor-voter-guide.

ChiaYinT avatar ChiaYinT commented on July 30, 2024

那這個解法呢? 基本上是多加上一條線
http://jsfiddle.net/thudfactor/HdwTH/

from councilor-voter-guide.

s890081tonyhsu avatar s890081tonyhsu commented on July 30, 2024

如果將字體拉大可能就接近完整解了,只是不知需要多少功夫(在圖不會被無限延展的狀況下)

因為d3畫出來的圖是固定大小的,小螢幕容易出界

from councilor-voter-guide.

ChiaYinT avatar ChiaYinT commented on July 30, 2024

其實不太熟d3 js這些東西 不過我可先試試看 :D

from councilor-voter-guide.

thewayiam avatar thewayiam commented on July 30, 2024

http://jsfiddle.net/thudfactor/HdwTH/
這解法的確較好
蠻希望圖中就包含完整資訊可供後續討論

from councilor-voter-guide.

ChiaYinT avatar ChiaYinT commented on July 30, 2024

這個如何?
screen shot 2014-11-26 at 12 37 44 pm

from councilor-voter-guide.

thewayiam avatar thewayiam commented on July 30, 2024

我覺得非常好,完全是夢中的樣子XD

from councilor-voter-guide.

ChiaYinT avatar ChiaYinT commented on July 30, 2024

不過我在網頁上沒有看到效果耶?!哪裡出錯了嗎?還是還沒發佈code上去server?

from councilor-voter-guide.

thewayiam avatar thewayiam commented on July 30, 2024

deployed !
http://councils.g0v.tw/suggestions/

from councilor-voter-guide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.